mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Playlist can be run without saving too
This commit is contained in:
parent
a292aedd9c
commit
71febeb71f
@ -101,6 +101,10 @@
|
||||
|
||||
<div class="pull-left">
|
||||
<div class="tight-form">
|
||||
<button type="button"
|
||||
class="btn btn-success"
|
||||
ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()"
|
||||
ng-click="startPlaylist(playlist, dashboards)">Start</button>
|
||||
<button type="button"
|
||||
class="btn btn-success"
|
||||
ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()"
|
||||
|
@ -79,6 +79,10 @@ function (angular, config, _) {
|
||||
});
|
||||
};
|
||||
|
||||
$scope.startPlaylist = function(playlist, dashboards) {
|
||||
playlistSrv.start(dashboards, playlist.timespan);
|
||||
};
|
||||
|
||||
$scope.isPlaylistEmpty = function() {
|
||||
return !dashboards.length;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user