Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-1327

CollectionStore.getActiveTab uses hard-coded index IDs

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.8.0-beta.1, 1.9.0-dev
    • Component/s: Plugins, Tech debt
    • Labels:
      None
    • Not Needed

      As discovered on COMPASS-1297, code comparisons like the following break when we do things like Documents Tab the default, COMPASS-749:

      if (CollectionStore.getActiveTab() === 1) {
      

      This ticket should generalize all tab comparisons so the tab can appear at any part of the tab list, i.e. not a hard-coded tab index.

            Assignee:
            Unassigned Unassigned
            Reporter:
            peter.schmidt Peter Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: