mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
Merge pull request #11579 from towolf/add-url-param-for-inactive-mode
Add another URL param «inactive» which works like «kiosk» but with title
This commit is contained in:
commit
693ff1c000
@ -49,7 +49,7 @@ Click the back button to rewind to the previous Dashboard in the Playlist.
|
|||||||
In TV mode the top navbar, row & panel controls will all fade to transparent.
|
In TV mode the top navbar, row & panel controls will all fade to transparent.
|
||||||
|
|
||||||
This happens automatically after one minute of user inactivity but can also be toggled manually
|
This happens automatically after one minute of user inactivity but can also be toggled manually
|
||||||
with the `d v` sequence shortcut. Any mouse movement or keyboard action will
|
with the `d v` sequence shortcut, or by appending the parameter `?inactive` to the dashboard URL. Any mouse movement or keyboard action will
|
||||||
restore navbar & controls.
|
restore navbar & controls.
|
||||||
|
|
||||||
Another feature is the kiosk mode - in kiosk mode the navbar is completely hidden/removed from view. This can be enabled with the `d k`
|
Another feature is the kiosk mode - in kiosk mode the navbar is completely hidden/removed from view. This can be enabled with the `d k`
|
||||||
|
@ -117,6 +117,14 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
|
|||||||
appEvents.emit('toggle-kiosk-mode');
|
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
|
// close all drops
|
||||||
for (let drop of Drop.drops) {
|
for (let drop of Drop.drops) {
|
||||||
drop.destroy();
|
drop.destroy();
|
||||||
|
Loading…
Reference in New Issue
Block a user