fix(electron): tab title/icon default state (#7731)
This commit is contained in:
@@ -31,6 +31,8 @@ export class Workbench extends Entity {
|
|||||||
return this.framework.createEntity(View, {
|
return this.framework.createEntity(View, {
|
||||||
id: meta.id,
|
id: meta.id,
|
||||||
defaultLocation: meta.path,
|
defaultLocation: meta.path,
|
||||||
|
icon: meta.icon,
|
||||||
|
title: meta.title,
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -3,11 +3,15 @@ import type { GlobalStateService } from '@toeverything/infra';
|
|||||||
import { createIdentifier, Service } from '@toeverything/infra';
|
import { createIdentifier, Service } from '@toeverything/infra';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
|
||||||
|
import type { ViewIconName } from '../constants';
|
||||||
|
|
||||||
export type WorkbenchDefaultState = {
|
export type WorkbenchDefaultState = {
|
||||||
basename: string;
|
basename: string;
|
||||||
views: {
|
views: {
|
||||||
id: string;
|
id: string;
|
||||||
path?: { pathname?: string; hash?: string; search?: string };
|
path?: { pathname?: string; hash?: string; search?: string };
|
||||||
|
icon?: ViewIconName;
|
||||||
|
title?: string;
|
||||||
}[];
|
}[];
|
||||||
activeViewIndex: number;
|
activeViewIndex: number;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user