Commit 8a1e0cd8 by Torkel Ödegaard

fix: kiosk url fix, fixes #13764

parent f84db510
...@@ -88,7 +88,7 @@ function setViewModeBodyClass(body, mode, sidemenuOpen: boolean) { ...@@ -88,7 +88,7 @@ function setViewModeBodyClass(body, mode, sidemenuOpen: boolean) {
break; break;
} }
// 1 & true for legacy states // 1 & true for legacy states
case 1: case '1':
case true: { case true: {
body.removeClass('sidemenu-open'); body.removeClass('sidemenu-open');
body.addClass('view-mode--kiosk'); body.addClass('view-mode--kiosk');
...@@ -181,11 +181,11 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop ...@@ -181,11 +181,11 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
switch (search.kiosk) { switch (search.kiosk) {
case 'tv': { case 'tv': {
search.kiosk = 1; search.kiosk = true;
appEvents.emit('alert-success', ['Press ESC to exit Kiosk mode']); appEvents.emit('alert-success', ['Press ESC to exit Kiosk mode']);
break; break;
} }
case 1: case '1':
case true: { case true: {
delete search.kiosk; delete search.kiosk;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment