feat: expose graphic screens in sidebar
This commit is contained in:
@@ -1374,12 +1374,23 @@
|
||||
if (!button) return;
|
||||
const buttonAtPosition = marketTabs.children.item(position);
|
||||
if (buttonAtPosition !== button) marketTabs.insertBefore(button, buttonAtPosition);
|
||||
button.textContent = tab.label;
|
||||
const label = button.querySelector(".workspace-nav-label");
|
||||
if (label) label.textContent = tab.label;
|
||||
else button.textContent = tab.label;
|
||||
button.setAttribute("aria-label", tab.label);
|
||||
button.title = tab.label;
|
||||
button.classList.toggle("active", tab.isActive === true);
|
||||
button.setAttribute("aria-current", tab.isActive === true ? "page" : "false");
|
||||
button.disabled = state.isBusy === true || state.fixedSectionBatch != null;
|
||||
button.draggable = state.isBusy !== true && state.fixedSectionBatch == null;
|
||||
});
|
||||
const activeTab = state.tabs.find(function (tab) { return tab.isActive === true; });
|
||||
// Keep the clicked menu highlighted while native tab loading is in flight.
|
||||
// The busy snapshot still carries the previous active tab; only reconcile
|
||||
// once the authoritative operation has completed.
|
||||
if (activeTab && state.isBusy !== true &&
|
||||
window.LegacyWorkspaceNavigation?.syncMarket) {
|
||||
window.LegacyWorkspaceNavigation.syncMarket(activeTab.id);
|
||||
}
|
||||
acknowledgePendingTabHoverSwap(
|
||||
state.tabs.map(function (tab) { return tab.id; }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user