1
0
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:
Sebastian Malton 2022-06-24 13:58:00 -04:00
parent 0e7961502b
commit 6f322b08f9

View File

@ -125,7 +125,7 @@ export interface ApplicationBuilder {
helmCharts: {
navigate: NavigateToHelmCharts;
};
navigateWith: (token: Injectable<() => void, any, void>) => void;
select: {
openMenu: (id: string) => { selectOption: (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: () => {
environment = environments.clusterFrame;