mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
fix: meeting tabs, workspace tab merging, rail panels as tabs and general ui lag
This commit is contained in:
1 parent
3b58415f8f
commit
30da0850da
13 files changed
+364
-101
No files matched your search
@@ -13,6 +13,8 @@ import { usePermissions } from "@/hooks/use-permissions";
|
||||
import { useSyncAttentionCount } from "@/hooks/use-sync-status";
|
||||
import { isElectron } from "@/lib/electron";
|
||||
import { createRegistry } from "@/lib/registry";
|
||||
import { getPanel } from "@/shell/panel-registry";
|
||||
import { getTabType } from "@/shell/tab-registry";
|
||||
|
||||
/**
|
||||
* The one list of navigation destinations.
|
||||
@@ -217,10 +219,12 @@ export function rightDockableIds(): string[] {
|
||||
.map((item) => item.id);
|
||||
}
|
||||
|
||||
/** Ids that may be opened as a full-width tab. */
|
||||
/** Ids that may be opened as a full-width tab: a tab type or a panel to show. */
|
||||
export function promotableIds(): string[] {
|
||||
return [...mergedRailItems(), ...RAIL_UTILITY_ITEMS]
|
||||
.filter((item) => item.promotable)
|
||||
.filter(
|
||||
(item) => item.promotable && (getTabType(item.id) || getPanel(item.id)),
|
||||
)
|
||||
.map((item) => item.id);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user