Fix wrong status object in elements

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-06-22 21:21:51 +02:00
parent a03986b1bb
commit aa69584afd
2 changed files with 2 additions and 3 deletions

View File

@@ -101,8 +101,8 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
$scope.boardUpdate = function(board) { $scope.boardUpdate = function(board) {
BoardService.update(board).then(function(data) { BoardService.update(board).then(function(data) {
$scope.filterData(); $scope.filterData();
board.status.edit = false;
}); });
board.status.edit = false;
}; };
$scope.boardUpdateBegin = function(board) { $scope.boardUpdateBegin = function(board) {

View File

@@ -124,9 +124,8 @@ app.factory('ApiService', function($http, $q){
} else { } else {
Object.keys(entity).forEach(function (key) { Object.keys(entity).forEach(function (key) {
element[key] = entity[key]; element[key] = entity[key];
if(element[key]!==null)
element[key].status = {};
}); });
element.status = {};
} }
}; };
ApiService.prototype.remove = function(id) { ApiService.prototype.remove = function(id) {