dashboard: show app checklist

This commit is contained in:
Johannes Zellner
2024-04-19 12:40:35 +02:00
parent 16521d5434
commit 49243822af
6 changed files with 49 additions and 8 deletions

View File

@@ -137,6 +137,9 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
};
$scope.info = {
checklist: [],
showDoneChecklist: false,
notes: {
busy: false,
editing: false,
@@ -171,15 +174,18 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
},
show: function () {
$scope.info.notes.busy = false;
$scope.info.checklist = $scope.app.checklist;
$scope.info.notes.content = $scope.app.notes;
$scope.info.notes.editing = false;
$scope.info.checklist = $scope.app.checklist;
$scope.info.notes.busy = false;
},
checklistAck: function () {
checklistAck(item) {
item.acknowledged = !item.acknowledged;
Client.configureApp($scope.app.id, 'checklist', { checklist: $scope.info.checklist }, function (error) {
if (error) return console.error('Failed to save checklist.', error);
});
}
};