fix: fixed playlist controls and view state, fixes #9639
(cherry picked from commit 8afb84a5e5)
This commit is contained in:
committed by
Torkel Ödegaard
parent
0f0be4e6e3
commit
83c5853900
@@ -31,8 +31,8 @@ function (_, $, coreModule) {
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$watch('playlistSrv', function(newValue) {
|
||||
elem.toggleClass('playlist-active', _.isObject(newValue));
|
||||
$scope.$watch('playlistSrv.isPlaying', function(newValue) {
|
||||
elem.toggleClass('playlist-active', newValue);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -20,10 +20,12 @@ export class DashboardCtrl {
|
||||
dynamicDashboardSrv,
|
||||
dashboardViewStateSrv,
|
||||
contextSrv,
|
||||
playlistSrv,
|
||||
alertSrv,
|
||||
$timeout) {
|
||||
|
||||
$scope.editor = { index: 0 };
|
||||
$scope.playlistSrv = playlistSrv;
|
||||
|
||||
var resizeEventTimeout;
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ export class DashNavCtrl {
|
||||
private $location,
|
||||
private backendSrv,
|
||||
private contextSrv,
|
||||
public playlistSrv,
|
||||
navModelSrv) {
|
||||
this.navModel = navModelSrv.getDashboardNav(this.dashboard, this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user