From c618fd10cd5c5f5e2444ed097c64dcc9e7f4aa73 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Thu, 7 Dec 2023 16:58:44 +0100 Subject: [PATCH] fix(ui): open in new window Ref: 3473 --- src/App.vue | 4 +--- src/components/custom/NodePanel.vue | 2 +- src/views/Debug.vue | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index 80d902a389d..fc4c7c48d65 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1374,9 +1374,7 @@ export default { this.toggleDrawer() } - const hash = window.location.hash.substr(1) - - if (hash === 'no-topbar') { + if (window.location.hash.includes('#no-topbar')) { this.hideTopbar = true } diff --git a/src/components/custom/NodePanel.vue b/src/components/custom/NodePanel.vue index d511ee31a1d..c385d973741 100644 --- a/src/components/custom/NodePanel.vue +++ b/src/components/custom/NodePanel.vue @@ -569,7 +569,7 @@ export default { }, newWindow() { const newwindow = window.open( - Routes.controllerChart + '#no-topbar', + '#' + Routes.controllerChart + '/#no-topbar', 'BG-RSSI-Chart', 'height=800,width=1200,status=no,toolbar:no,scrollbars:no,menubar:no', // check https://www.w3schools.com/jsref/met_win_open.asp for all available specs ) diff --git a/src/views/Debug.vue b/src/views/Debug.vue index 23fd0138b19..c0082a217c4 100644 --- a/src/views/Debug.vue +++ b/src/views/Debug.vue @@ -120,7 +120,7 @@ export default { }, newWindow() { const newwindow = window.open( - window.location.href + '#no-topbar', + window.location.href + '/#no-topbar', 'DEBUG', 'height=800,width=600,status=no,toolbar:no,scrollbars:no,menubar:no', // check https://www.w3schools.com/jsref/met_win_open.asp for all available specs )