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:
@@ -101,6 +101,10 @@
|
|||||||
|
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
<div class="tight-form">
|
<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"
|
<button type="button"
|
||||||
class="btn btn-success"
|
class="btn btn-success"
|
||||||
ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()"
|
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() {
|
$scope.isPlaylistEmpty = function() {
|
||||||
return !dashboards.length;
|
return !dashboards.length;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user