Add support for quickly navigating with the application builder

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-08-18 10:38:30 -04:00
1 parent 0e7961502b
commit 6f322b08f9
1 file changed
+7 -1
@@ -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;