This commit is contained in:
Jan Prochazka
2024-08-12 10:55:08 +02:00
parent ff3c39ccad
commit 63cdb4e507
2 changed files with 2 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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}