Commit 71febeb7 by utkarshcmu

Playlist can be run without saving too

parent a292aedd
...@@ -104,6 +104,10 @@ ...@@ -104,6 +104,10 @@
<button type="button" <button type="button"
class="btn btn-success" class="btn btn-success"
ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()" ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()"
ng-click="startPlaylist(playlist, dashboards)">Start</button>
<button type="button"
class="btn btn-success"
ng-disabled="playlistEditForm.$invalid || isPlaylistEmpty()"
ng-click="savePlaylist(playlist, dashboards)">Save</button> ng-click="savePlaylist(playlist, dashboards)">Save</button>
<button type="button" <button type="button"
class="btn btn-default" class="btn btn-default"
......
...@@ -79,6 +79,10 @@ function (angular, config, _) { ...@@ -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;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment