From 7c482064df3e90b98a0af6d14a72b01d013708b0 Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 4 Jan 2016 10:16:00 +0100 Subject: [PATCH] feat(playlist): improve header --- .../features/playlist/partials/playlist.html | 30 +++++++++++-------- .../app/features/playlist/playlistEditCtrl.js | 4 +++ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/public/app/features/playlist/partials/playlist.html b/public/app/features/playlist/partials/playlist.html index 5ae196d94d7..88828a9b5b7 100644 --- a/public/app/features/playlist/partials/playlist.html +++ b/public/app/features/playlist/partials/playlist.html @@ -2,8 +2,12 @@
-

Create new playlist



-
+

New playlist

+

Edit playlist

+ +
1. Name and interval
+ +
    @@ -19,7 +23,7 @@
    • - Timespan + Interval
    • @@ -30,9 +34,10 @@

    +
    2. Add dashboards
    -
    +
    • Search Search dashboards by their titles to add to the playlist @@ -41,7 +46,7 @@
    • @@ -52,8 +57,8 @@
    -
    -
    +
    +
    Search results
    @@ -79,7 +84,7 @@
    -
    +
    Playlist dashboards
    @@ -96,11 +101,10 @@ -
    -
    +
    -
    -
    +
    + -
    +
    diff --git a/public/app/features/playlist/playlistEditCtrl.js b/public/app/features/playlist/playlistEditCtrl.js index ca64ec04aaf..819a403ac48 100644 --- a/public/app/features/playlist/playlistEditCtrl.js +++ b/public/app/features/playlist/playlistEditCtrl.js @@ -79,6 +79,10 @@ function (angular, config, _) { }); }; + $scope.isNew = function() { + return !playlist.id; + }; + $scope.startPlaylist = function(playlist, dashboards) { playlistSrv.start(dashboards, playlist.timespan); };