mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add navigate to LensRendererExtension
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
7bcf23b170
commit
03b486eca0
@ -4,7 +4,9 @@ import type {
|
||||
PageRegistration, StatusBarRegistration, KubeObjectStatusRegistration
|
||||
} from "./registries"
|
||||
import { observable } from "mobx";
|
||||
import { LensExtension } from "./lens-extension"
|
||||
import { LensExtension } from "./lens-extension";
|
||||
import { LocationDescriptor } from "history";
|
||||
import { navigate } from "../renderer/navigation";
|
||||
|
||||
export class LensRendererExtension extends LensExtension {
|
||||
@observable.shallow globalPages: PageRegistration[] = []
|
||||
@ -15,4 +17,8 @@ export class LensRendererExtension extends LensExtension {
|
||||
@observable.shallow statusBarItems: StatusBarRegistration[] = []
|
||||
@observable.shallow kubeObjectDetailItems: KubeObjectDetailRegistration[] = []
|
||||
@observable.shallow kubeObjectMenuItems: KubeObjectMenuRegistration[] = []
|
||||
|
||||
navigate(location: LocationDescriptor) {
|
||||
navigate(location)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user