Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-99

In preview app: Persona switcher arrows are disabled on load

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.0
    • 1.0
    • None
    • None

      Uunless the url contains a "previewPersona" preview attribute, then on load the left and right arrows on the switcher are disabled. As soon as you choose a user from the dropdown, then the arrows are enabled.

      Technical notes:
      It seems like the switcher does not properly initialize itself. So perhaps this is a UI ticket.

      I experimented a little and did find a way to properly initialize the siwtcher.

      in PagePreviewSubApp#start, after the check

      previewLocation.hasAdditionalParameters()

      To add something along the lines of this in order to add a default for the previewItem:

      if (null == previewItem.getItemProperty("persona")){
                  final Property<String> property = new DefaultProperty<String>(String.class, "/");
                  previewItem.addItemProperty("persona",property);
              }
      

      But I guess you would want to query the config for the proper property instead of hardcoding "persona".

        Acceptance criteria

              rkovarik Roman Kovařík
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD