1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

more fixes

Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Roman 2020-08-10 20:05:26 +03:00 committed by Lauri Nevala
parent 4ef26bec58
commit d2be0e450b
2 changed files with 6 additions and 2 deletions

View File

@ -90,7 +90,7 @@ export function buildMenu() {
label: 'Back',
accelerator: 'CmdOrCtrl+[',
click() {
webContents.getFocusedWebContents()?.goBack();
webContents.getFocusedWebContents()?.goBack(); // fixme: works until second cluster selected
}
},
{

View File

@ -70,13 +70,17 @@ export class ClusterManager extends React.Component {
}),
reaction(() => [
getMatchedClusterId(),
getMatchedCluster()?.available,
getMatchedCluster()?.available, // refresh on disconnect active-cluster
], refreshViews, {
fireImmediately: true
})
])
}
componentWillUnmount() {
lensViews.clear();
}
get startUrl() {
const { activeClusterId } = clusterStore;
if (activeClusterId) {