Commit 40c9d5f2 by Torkel Ödegaard

ux: hide sidemenu in kiosk mode, and while playlist is playing, fixes #107402

parent a906dd81
......@@ -83,6 +83,10 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
body.toggleClass('sidemenu-hidden');
});
scope.$watch(() => playlistSrv.isPlaying, function(newValue) {
elem.toggleClass('playlist-active', newValue === true);
});
// tooltip removal fix
// manage page classes
var pageClass;
......
......@@ -18,10 +18,6 @@ function (_, $, coreModule) {
elem.toggleClass('panel-in-fullscreen', false);
});
$scope.$watch('ctrl.playlistSrv.isPlaying', function(newValue) {
elem.toggleClass('playlist-active', newValue === true);
});
$scope.$watch('ctrl.dashboardViewState.state.editview', function(newValue) {
if (newValue) {
elem.toggleClass('dashboard-page--settings-opening', _.isString(newValue));
......
.page-kiosk-mode {
dashnav {
.sidemenu,
.navbar {
display: none;
}
}
......@@ -31,6 +32,10 @@
}
}
.sidemenu {
display: none;
}
.gf-timepicker-nav-btn {
transform: translate3d(40px, 0, 0);
}
......
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