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: {
|
||||
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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user