Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-7209

[editor] HuePubSub subscribes are only bound to the first opened editor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: app.editor
    • Labels:
      None

      Description

      $(document).ready is only called once for the editors, registering the pubsub topics to the initial editor type.

      If first editor has url params ?type=impala all the pubsubs are registered for 'editor-impala', when switching to another editor the pubsubs doesn't exist for that type and are not triggered anymore.

      This means we have to move all the pub subs to the top level viewmodel (only loaded once) and avoid subscribing from within snippets etc.

        Attachments

          Activity

            People

            • Assignee:
              johan.ahlen Johan Åhlén
              Reporter:
              johan.ahlen Johan Åhlén
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: