mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: fixed playlist controls and view state, fixes #9639
This commit is contained in:
@@ -31,8 +31,8 @@ function (_, $, coreModule) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$watch('playlistSrv', function(newValue) {
|
$scope.$watch('playlistSrv.isPlaying', function(newValue) {
|
||||||
elem.toggleClass('playlist-active', _.isObject(newValue));
|
elem.toggleClass('playlist-active', newValue);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,10 +20,12 @@ export class DashboardCtrl {
|
|||||||
dynamicDashboardSrv,
|
dynamicDashboardSrv,
|
||||||
dashboardViewStateSrv,
|
dashboardViewStateSrv,
|
||||||
contextSrv,
|
contextSrv,
|
||||||
|
playlistSrv,
|
||||||
alertSrv,
|
alertSrv,
|
||||||
$timeout) {
|
$timeout) {
|
||||||
|
|
||||||
$scope.editor = { index: 0 };
|
$scope.editor = { index: 0 };
|
||||||
|
$scope.playlistSrv = playlistSrv;
|
||||||
|
|
||||||
var resizeEventTimeout;
|
var resizeEventTimeout;
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export class DashNavCtrl {
|
|||||||
private $location,
|
private $location,
|
||||||
private backendSrv,
|
private backendSrv,
|
||||||
private contextSrv,
|
private contextSrv,
|
||||||
|
public playlistSrv,
|
||||||
navModelSrv) {
|
navModelSrv) {
|
||||||
this.navModel = navModelSrv.getDashboardNav(this.dashboard, this);
|
this.navModel = navModelSrv.getDashboardNav(this.dashboard, this);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user