dashboard: finish checklist display
pending showing acknowledged items later
This commit is contained in:
@@ -137,7 +137,6 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
};
|
||||
|
||||
$scope.info = {
|
||||
checklist: [],
|
||||
showDoneChecklist: false,
|
||||
|
||||
notes: {
|
||||
@@ -174,16 +173,15 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
|
||||
},
|
||||
|
||||
show: function () {
|
||||
$scope.info.checklist = $scope.app.checklist;
|
||||
$scope.info.notes.content = $scope.app.notes;
|
||||
$scope.info.notes.editing = false;
|
||||
$scope.info.notes.busy = false;
|
||||
},
|
||||
|
||||
checklistAck(item) {
|
||||
item.acknowledged = !item.acknowledged;
|
||||
item.acknowledged = true;
|
||||
|
||||
Client.configureApp($scope.app.id, 'checklist', { checklist: $scope.info.checklist }, function (error) {
|
||||
Client.configureApp($scope.app.id, 'checklist', { checklist: $scope.app.checklist }, function (error) {
|
||||
if (error) return console.error('Failed to save checklist.', error);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user