IBM / mac-ibm-notifications

macOS agent used to display custom notifications and alerts to the end user.
Apache License 2.0
294 stars 51 forks source link

[BUG] Progress bar not showing up in Onboarding UI for single paged onboarding #214

Closed SMartorelli closed 2 months ago

SMartorelli commented 2 months ago

Describe the bug Progress bar payload is ignored in the Onboarding UI if the onboarding payload has only one page.

To Reproduce Onboarding Payload JSON sample:

{
   "progressBarPayload":"/percent 0 /exit_on_completion true /top_message Top Message /bottom_message Bottom Message",
   "pages":[
      {
         "title":"First page's title",
         "subtitle":"First page's subtitle",
         "body":"First page's body"
      }
   ]
}

Expected behavior Progress bar should appear.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Reported by slack user Marcus Hesse in the mac-ibm-open-source channel