diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html
index 47af178397a..7cb22c756cd 100644
--- a/public/app/features/dashboard/dashnav/dashnav.html
+++ b/public/app/features/dashboard/dashnav/dashnav.html
@@ -14,6 +14,18 @@
+
+
-
-
-
diff --git a/public/app/features/playlist/playlist_srv.ts b/public/app/features/playlist/playlist_srv.ts
index 8c6be5edaf5..e231a645f92 100644
--- a/public/app/features/playlist/playlist_srv.ts
+++ b/public/app/features/playlist/playlist_srv.ts
@@ -1,7 +1,6 @@
///
import angular from 'angular';
-import config from 'app/core/config';
import coreModule from '../../core/core_module';
import kbn from 'app/core/utils/kbn';
@@ -11,6 +10,7 @@ class PlaylistSrv {
private index: number;
private interval: any;
private playlistId: number;
+ private startUrl: string;
/** @ngInject */
constructor(private $rootScope: any, private $location: any, private $timeout: any, private backendSrv: any) { }
@@ -21,7 +21,7 @@ class PlaylistSrv {
var playedAllDashboards = this.index > this.dashboards.length - 1;
if (playedAllDashboards) {
- window.location.href = `${config.appSubUrl}/playlists/play/${this.playlistId}`;
+ window.location.href = this.startUrl;
} else {
var dash = this.dashboards[this.index];
this.$location.url('dashboard/' + dash.uri);
@@ -39,6 +39,7 @@ class PlaylistSrv {
start(playlistId) {
this.stop();
+ this.startUrl = window.location.href;
this.index = 0;
this.playlistId = playlistId;
this.$rootScope.playlistSrv = this;
diff --git a/public/sass/components/_view_states.scss b/public/sass/components/_view_states.scss
index 8ab13c56776..edbff235cd4 100644
--- a/public/sass/components/_view_states.scss
+++ b/public/sass/components/_view_states.scss
@@ -9,35 +9,6 @@
}
}
-.playlist-active {
- @include hide-controls();
-
- .navbar-inner {
- background: transparent;
- }
- .navbar-brand-btn,
- .navbar-page-btn {
- border: none;
- background: transparent;
- .fa, .icon-gf {
- opacity: 0;
- }
- }
-
- .dashnav-refresh-action,
- .dashnav-zoom-out,
- .dashnav-action-icons,
- .dashnav-move-timeframe {
- display: none;
- }
-
- .dash-playlist-actions {
- a {
- color: $text-color-faint !important;
- }
- }
-}
-
.hide-controls {
@include hide-controls();
}
@@ -49,6 +20,7 @@
}
}
+.playlist-active,
.user-activity-low {
.add-row-panel-hint,
.dash-row-menu-container,
@@ -90,3 +62,12 @@
transition: transform 1.5s ease-in-out 1s;
}
}
+
+.playlist-active {
+ .dash-playlist-actions {
+ .fa {
+ opacity: 1;
+ color: $text-color-faint !important;
+ }
+ }
+}
diff --git a/public/sass/pages/_dashboard.scss b/public/sass/pages/_dashboard.scss
index 73b2772abc8..11933e0d76b 100644
--- a/public/sass/pages/_dashboard.scss
+++ b/public/sass/pages/_dashboard.scss
@@ -218,3 +218,4 @@ div.flot-text {
padding: 0.5rem .5rem .2rem .5rem;
}
}
+