mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
77641f0588
commit
7a2c39cbfc
1 file changed
+2
-1
@@ -4,6 +4,7 @@ import { WindowManager } from "../main/window-manager";
|
|||||||
import { getExtensionPageUrl } from "./registries/page-registry";
|
import { getExtensionPageUrl } from "./registries/page-registry";
|
||||||
import { catalogEntityRegistry } from "../common/catalog-entity-registry";
|
import { catalogEntityRegistry } from "../common/catalog-entity-registry";
|
||||||
import { CatalogEntity } from "../common/catalog-entity";
|
import { CatalogEntity } from "../common/catalog-entity";
|
||||||
|
import { IObservableArray } from "mobx";
|
||||||
|
|
||||||
export class LensMainExtension extends LensExtension {
|
export class LensMainExtension extends LensExtension {
|
||||||
appMenus: MenuRegistration[] = [];
|
appMenus: MenuRegistration[] = [];
|
||||||
@@ -19,7 +20,7 @@ export class LensMainExtension extends LensExtension {
|
|||||||
await windowManager.navigate(pageUrl, frameId);
|
await windowManager.navigate(pageUrl, frameId);
|
||||||
}
|
}
|
||||||
|
|
||||||
addCatalogSource(id: string, source: CatalogEntity[]) {
|
addCatalogSource(id: string, source: IObservableArray<CatalogEntity>) {
|
||||||
catalogEntityRegistry.addSource(`${this.name}:${id}`, source);
|
catalogEntityRegistry.addSource(`${this.name}:${id}`, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user