diff --git a/dashboard/src/theme.scss b/dashboard/src/theme.scss index 27ec81040..359c506fc 100644 --- a/dashboard/src/theme.scss +++ b/dashboard/src/theme.scss @@ -684,6 +684,7 @@ multiselect { display: flex; justify-content: space-between; align-items: center; + margin-bottom: 5px; } .checklist-item-acknowledged { diff --git a/dashboard/src/views/app.html b/dashboard/src/views/app.html index 9a357801a..ed6c91a8f 100644 --- a/dashboard/src/views/app.html +++ b/dashboard/src/views/app.html @@ -729,7 +729,26 @@
-

+

+ + Show Checklist +

+ +
+
+ {{ item.message }} + +
+
+ +
+
+ {{ item.message }} +
+
+ +
+
{{ 'app.updates.info.description' | tr }} @@ -768,24 +787,6 @@
- - -
- -
-
- {{ item.message }} - -
-
- -
-
- {{ item.message }} - -
-
-

diff --git a/dashboard/src/views/app.js b/dashboard/src/views/app.js index 7e21f346d..56bee67ea 100644 --- a/dashboard/src/views/app.js +++ b/dashboard/src/views/app.js @@ -138,6 +138,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' $scope.info = { showDoneChecklist: false, + hasOldChecklist: false, notes: { busy: false, @@ -173,6 +174,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' }, show: function () { + $scope.info.hasOldChecklist = !!Object.keys($scope.app.checklist).find((k) => { return $scope.app.checklist[k].acknowledged; }); $scope.info.notes.content = $scope.app.notes; $scope.info.notes.editing = false; $scope.info.notes.busy = false; @@ -183,6 +185,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location' Client.configureApp($scope.app.id, 'checklist', { checklist: $scope.app.checklist }, function (error) { if (error) return console.error('Failed to save checklist.', error); + $scope.info.hasOldChecklist = true; }); } };