mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 07:16:01 +00:00
UX
This commit is contained in:
@@ -20,6 +20,7 @@ export interface TabDefinition {
|
|||||||
tabComponent: string;
|
tabComponent: string;
|
||||||
tabOrder?: number;
|
tabOrder?: number;
|
||||||
multiTabIndex?: number;
|
multiTabIndex?: number;
|
||||||
|
unsaved?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function writableWithStorage<T>(defaultValue: T, storageName) {
|
export function writableWithStorage<T>(defaultValue: T, storageName) {
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
tabComponent={mountedTabs[tabid]}
|
tabComponent={mountedTabs[tabid]}
|
||||||
{...openedTabsByTabId[tabid]?.props}
|
{...openedTabsByTabId[tabid]?.props}
|
||||||
{tabid}
|
{tabid}
|
||||||
|
unsaved={openedTabsByTabId[tabid]?.unsaved}
|
||||||
tabVisible={tabid == shownTab?.tabid}
|
tabVisible={tabid == shownTab?.tabid}
|
||||||
/>
|
/>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user