[COMPASS-1327] CollectionStore.getActiveTab uses hard-coded index IDs Created: 04/Jul/17  Updated: 27/Oct/23  Resolved: 13/Oct/20

Status: Closed
Project: Compass
Component/s: Plugins, Tech debt
Affects Version/s: 1.8.0-beta.1, 1.9.0-dev
Fix Version/s: No version

Type: Task Priority: Major - P3
Reporter: Peter Schmidt Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Documentation Changes: Not Needed

 Description   

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.


Generated at Wed Feb 07 22:27:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.