mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
remove @observable.shallow from Lens(M|R)Extension (#1504)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4e6b8ee10e
commit
ca49fb98d9
@ -5,7 +5,7 @@ import { WindowManager } from "../main/window-manager";
|
|||||||
import { getExtensionPageUrl } from "./registries/page-registry";
|
import { getExtensionPageUrl } from "./registries/page-registry";
|
||||||
|
|
||||||
export class LensMainExtension extends LensExtension {
|
export class LensMainExtension extends LensExtension {
|
||||||
@observable.shallow appMenus: MenuRegistration[] = [];
|
appMenus: MenuRegistration[] = [];
|
||||||
|
|
||||||
async navigate<P extends object>(pageId?: string, params?: P, frameId?: number) {
|
async navigate<P extends object>(pageId?: string, params?: P, frameId?: number) {
|
||||||
const windowManager = WindowManager.getInstance<WindowManager>();
|
const windowManager = WindowManager.getInstance<WindowManager>();
|
||||||
|
|||||||
@ -6,16 +6,16 @@ import { getExtensionPageUrl } from "./registries/page-registry";
|
|||||||
|
|
||||||
|
|
||||||
export class LensRendererExtension extends LensExtension {
|
export class LensRendererExtension extends LensExtension {
|
||||||
@observable.shallow globalPages: PageRegistration[] = [];
|
globalPages: PageRegistration[] = [];
|
||||||
@observable.shallow clusterPages: PageRegistration[] = [];
|
clusterPages: PageRegistration[] = [];
|
||||||
@observable.shallow globalPageMenus: PageMenuRegistration[] = [];
|
globalPageMenus: PageMenuRegistration[] = [];
|
||||||
@observable.shallow clusterPageMenus: PageMenuRegistration[] = [];
|
clusterPageMenus: PageMenuRegistration[] = [];
|
||||||
@observable.shallow kubeObjectStatusTexts: KubeObjectStatusRegistration[] = [];
|
kubeObjectStatusTexts: KubeObjectStatusRegistration[] = [];
|
||||||
@observable.shallow appPreferences: AppPreferenceRegistration[] = [];
|
appPreferences: AppPreferenceRegistration[] = [];
|
||||||
@observable.shallow clusterFeatures: ClusterFeatureRegistration[] = [];
|
clusterFeatures: ClusterFeatureRegistration[] = [];
|
||||||
@observable.shallow statusBarItems: StatusBarRegistration[] = [];
|
statusBarItems: StatusBarRegistration[] = [];
|
||||||
@observable.shallow kubeObjectDetailItems: KubeObjectDetailRegistration[] = [];
|
kubeObjectDetailItems: KubeObjectDetailRegistration[] = [];
|
||||||
@observable.shallow kubeObjectMenuItems: KubeObjectMenuRegistration[] = [];
|
kubeObjectMenuItems: KubeObjectMenuRegistration[] = [];
|
||||||
|
|
||||||
async navigate<P extends object>(pageId?: string, params?: P) {
|
async navigate<P extends object>(pageId?: string, params?: P) {
|
||||||
const { navigate } = await import("../renderer/navigation");
|
const { navigate } = await import("../renderer/navigation");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user