Matterway
    Preparing search index...

    Function showFailureNotice

    • Shows a failure notice in a bubble to the user.

      Parameters

      • ctx: Context
      • options: ShowFailureNoticeOptions

      Returns Promise<NoticeBubbleResult>

      await showFailureNotice(ctx, {
      title: 'Choosing Random Book',
      description: 'Picking a book on Amazon based on prefered genre.',
      subtitle: t('failure.subtitle'),
      text: t('failure.text', { err: err.message }),
      buttons: [{
      text: 'dismiss',
      value: 'ok',
      }],
      });
      await showFailureNotice(ctx, {
      title: 'Fetching Data.',
      description: 'We are gathering all needed data from your website.',
      icon: 'close-circle-outline',
      iconColor: 'red',
      subtitle: '#subtitle',
      text: 'The automation has failed at step Fetching Data',
      buttons: [{
      value: 'ok',
      text: 'dismiss',
      disabled: false,
      }],
      });

      This function has been deprecated. Please use showUI.failure instead.