mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
8f3730157b
commit
9ba5025a0b
1 file changed
+2
-2
+2
-2
@@ -12,7 +12,7 @@ import logger from "./logger";
|
||||
|
||||
export function initMenu(windowManager: WindowManager) {
|
||||
autorun(() => {
|
||||
logger.debug(`[MENU]: refreshing menu, cluster=${clusterStore.activeClusterId}`);
|
||||
logger.debug(`[MENU]: building menu, cluster=${clusterStore.activeClusterId}`);
|
||||
buildMenu(windowManager);
|
||||
});
|
||||
}
|
||||
@@ -20,9 +20,9 @@ export function initMenu(windowManager: WindowManager) {
|
||||
function buildMenu(windowManager: WindowManager) {
|
||||
const hasClusters = clusterStore.hasClusters();
|
||||
const activeClusterId = clusterStore.activeClusterId;
|
||||
const clusterView = windowManager.getClusterView(activeClusterId);
|
||||
|
||||
function navigate(url: string) {
|
||||
const clusterView = windowManager.getClusterView(activeClusterId);
|
||||
broadcastIpc({
|
||||
channel: "menu:navigate",
|
||||
webContentId: clusterView ? clusterView.id : undefined /*no-clusters*/,
|
||||
|
||||
Reference in new issue
Block a user