feat(tabs): configurable tab bar position, grouping and sorting
This commit is contained in:
18 files changed
+728
-353
No files matched your search
@@ -17,6 +17,7 @@ export interface SavedQueryResultRun {
|
||||
|
||||
export interface SavedOpenTab {
|
||||
id: string;
|
||||
createdAt?: number;
|
||||
title: string;
|
||||
customTitle?: boolean;
|
||||
connectionId: string;
|
||||
@@ -91,6 +92,7 @@ function restoredOriginalSql(tab: SavedOpenTab, mode: QueryTab["mode"], sql: str
|
||||
export function serializeOpenTabs(tabs: QueryTab[]): SavedOpenTab[] {
|
||||
return tabs.map((tab) => ({
|
||||
id: tab.id,
|
||||
...(typeof tab.createdAt === "number" ? { createdAt: tab.createdAt } : {}),
|
||||
title: tab.title,
|
||||
...(tab.customTitle ? { customTitle: true } : {}),
|
||||
connectionId: tab.connectionId,
|
||||
|
||||
Reference in new issue
Block a user