Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
947b38b3
Unverified
Commit
947b38b3
authored
Mar 04, 2019
by
Marcus Efraimsson
Committed by
GitHub
Mar 04, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15766 from grafana/15765-kiosk-mode-url
fix: Kiosk mode should have &kiosk appended to the url
parents
c3604767
92ec8757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
public/app/routes/GrafanaCtrl.ts
+4
-4
No files found.
public/app/routes/GrafanaCtrl.ts
View file @
947b38b3
...
@@ -75,7 +75,7 @@ export class GrafanaCtrl {
...
@@ -75,7 +75,7 @@ export class GrafanaCtrl {
}
}
}
}
function
setViewModeBodyClass
(
body
,
mode
:
KioskUrlValue
,
sidemenuOpen
:
boolean
)
{
function
setViewModeBodyClass
(
body
:
JQuery
,
mode
:
KioskUrlValue
,
sidemenuOpen
:
boolean
)
{
body
.
removeClass
(
'view-mode--tv'
);
body
.
removeClass
(
'view-mode--tv'
);
body
.
removeClass
(
'view-mode--kiosk'
);
body
.
removeClass
(
'view-mode--kiosk'
);
body
.
removeClass
(
'view-mode--inactive'
);
body
.
removeClass
(
'view-mode--inactive'
);
...
@@ -174,8 +174,8 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
...
@@ -174,8 +174,8 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
});
});
// handle kiosk mode
// handle kiosk mode
appEvents
.
on
(
'toggle-kiosk-mode'
,
options
=>
{
appEvents
.
on
(
'toggle-kiosk-mode'
,
(
options
:
{
exit
?:
boolean
})
=>
{
const
search
=
$location
.
search
();
const
search
:
{
kiosk
?:
KioskUrlValue
}
=
$location
.
search
();
if
(
options
&&
options
.
exit
)
{
if
(
options
&&
options
.
exit
)
{
search
.
kiosk
=
'1'
;
search
.
kiosk
=
'1'
;
...
@@ -197,7 +197,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
...
@@ -197,7 +197,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
}
}
}
}
$
location
.
search
(
search
);
$
timeout
(()
=>
$location
.
search
(
search
)
);
setViewModeBodyClass
(
body
,
search
.
kiosk
,
sidemenuOpen
);
setViewModeBodyClass
(
body
,
search
.
kiosk
,
sidemenuOpen
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment