mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add support for quickly navigating with the application builder
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
0e7961502b
commit
6f322b08f9
@ -125,7 +125,7 @@ export interface ApplicationBuilder {
|
|||||||
helmCharts: {
|
helmCharts: {
|
||||||
navigate: NavigateToHelmCharts;
|
navigate: NavigateToHelmCharts;
|
||||||
};
|
};
|
||||||
|
navigateWith: (token: Injectable<() => void, any, void>) => void;
|
||||||
select: {
|
select: {
|
||||||
openMenu: (id: string) => { selectOption: (labelText: string) => void };
|
openMenu: (id: string) => { selectOption: (labelText: string) => void };
|
||||||
selectOption: (menuId: string, labelText: string) => void;
|
selectOption: (menuId: string, labelText: string) => void;
|
||||||
@ -441,6 +441,12 @@ export const getApplicationBuilder = () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
navigateWith: (token) => {
|
||||||
|
const navigate = rendererDi.inject(token);
|
||||||
|
|
||||||
|
navigate();
|
||||||
|
},
|
||||||
|
|
||||||
setEnvironmentToClusterFrame: () => {
|
setEnvironmentToClusterFrame: () => {
|
||||||
environment = environments.clusterFrame;
|
environment = environments.clusterFrame;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user