mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix: cluster-settings page back-button navigation is broken (#2330)
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
7d1b5e4627
commit
c815396622
2 files changed
+31
-17
No files matched your search
@@ -138,13 +138,12 @@ export class WindowManager extends Singleton {
|
||||
|
||||
async navigate(url: string, frameId?: number) {
|
||||
await this.ensureMainWindow();
|
||||
let frameInfo: ClusterFrameInfo;
|
||||
|
||||
if (frameId) {
|
||||
frameInfo = Array.from(clusterFrameMap.values()).find((frameInfo) => frameInfo.frameId === frameId);
|
||||
}
|
||||
const frameInfo = Array.from(clusterFrameMap.values()).find((frameInfo) => frameInfo.frameId === frameId);
|
||||
const channel = frameInfo ? "renderer:navigate-in-cluster" : "renderer:navigate";
|
||||
|
||||
this.sendToView({
|
||||
channel: "renderer:navigate",
|
||||
channel,
|
||||
frameInfo,
|
||||
data: [url],
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user