Add another URL param «inactive» which works like «kiosk» but with title

closes #11228
This commit is contained in:
Tobias Wolf 2018-04-12 21:14:58 +02:00
parent 041067f5f0
commit a43e7c7b3f

View File

@ -117,6 +117,14 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
appEvents.emit('toggle-kiosk-mode');
}
// check for 'inactive' url param for clean looks like kiosk, but with title
if (data.params.inactive) {
body.addClass('user-activity-low');
// for some reason, with this class it looks cleanest
body.addClass('sidemenu-open');
}
// close all drops
for (let drop of Drop.drops) {
drop.destroy();