File tree Expand file tree Collapse file tree 2 files changed +6
-21
lines changed
Expand file tree Collapse file tree 2 files changed +6
-21
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,17 @@ def make_grafana(
3434
3535 view = "d"
3636 slug = "foo"
37- query = ""
37+ query = []
3838 if options ["dashboard-view" ]:
3939 view = options ["dashboard-view" ]
4040 if options ["panel-id" ]:
4141 if options ["dashboard-view" ] == "d-solo" :
42- query = (
43- "?panelId="
44- + options ["panel-id" ]
45- + "&__feature.dashboardSceneSolo&fullscreen"
46- )
42+ query .append ("panelId=" + options ["panel-id" ])
43+ query .append ("__feature.dashboardSceneSolo&fullscreen" )
4744 else :
48- query = "?viewPanel=" + options ["panel-id" ]
45+ query .append ("viewPanel=" + options ["panel-id" ])
46+ query .append ("kiosk" )
47+ query = '&' .join (query )
4948
5049 if url [- 1 ] != "/" :
5150 url += "/"
Original file line number Diff line number Diff line change @@ -142,12 +142,6 @@ class GrafanaStudioSrv {
142142 _this . improveDashboardChrome ( ) ;
143143 _this . improvePanelChrome ( ) ;
144144 } ) ;
145-
146- // Adjust user interface on dashboard load.
147- // FIXME: This happens too fast. Complex dashboards might not have finished loading here.
148- if ( this . hasHeaderLayout ( "no-chrome" , "studio" ) ) {
149- this . setKioskMode ( ) ;
150- }
151145 }
152146
153147 improveDashboardChrome ( ) {
@@ -158,7 +152,6 @@ class GrafanaStudioSrv {
158152
159153 // below CSS properteis are not working with Grafana 11 anymore
160154 if ( this . hasHeaderLayout ( "no-chrome" , "studio" ) ) {
161- //this.setKioskMode();
162155
163156 // Add some padding to content top.
164157 $ ( ".main-view" ) . css ( "padding-top" , "1rem" ) ;
@@ -262,13 +255,6 @@ class GrafanaStudioSrv {
262255 return title ;
263256 }
264257
265- setKioskMode ( ) {
266- if ( ! document . querySelector ( '[title="Enable kiosk mode"]' ) ) {
267- document . querySelector ( '[title="Toggle top search bar"]' ) . click ( ) ;
268- }
269- document . querySelector ( '[title="Enable kiosk mode"]' ) . click ( ) ;
270- }
271-
272258 addAttribution ( ) {
273259 // Hijack Leaflet attribution area for Grafana and grafanimate.
274260 // TODO: Use alternative place if there 's not Worldmap in sight.
You can’t perform that action at this time.
0 commit comments