Fixed Footer, order of buttons

Viewed 79

I have a little bit confused with the google-calendar addon today. I noticed that secondary and primary buttons have swapped. The primary button has been on the right side and the secondary on the right, but now they swapped.

Was: enter image description here

Actual: enter image description here

I really don't know what happened, it looks like the apps-script team pushed some change to an addon or something like that.

This is my code how I appending the fixed-footer

The service

export class FooterService {
  public static getCardFooter(
    primaryButton: CardButtonInterface,
    secondaryButton? : CardButtonInterface
  ): FixedFooter {

    const footer = CardService.newFixedFooter()
      .setPrimaryButton(ButtonService.getTextButton(primaryButton));

    if (secondaryButton) {
      footer.setSecondaryButton(
        ButtonService.getTextButton(secondaryButton)
      );
    }

    return footer;
  }
}

Impleentation:

cardBuilder.appendFooter(
  FooterService.getCardFooter({
    text: buttonBack,
    functionName: NavigationsHandlersNames.goBack,
    backgroundColor: themeConstant.grey
  }, {
    text: selectSite.buttonApply,
    buttonStyle: CardService.TextButtonStyle.TEXT,
    backgroundColor: themeConstant.primary,
    functionName: 'applySelectedChanges'
  })
);

Thanks for any help!

0 Answers
Related