浏览代码

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

closes #11228
Tobias Wolf 7 年之前
父节点
当前提交
a43e7c7b3f
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      public/app/core/components/grafana_app.ts

+ 8 - 0
public/app/core/components/grafana_app.ts

@@ -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();