Fix bug when board list was not in sync when adding a new one

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-12-01 17:05:48 +01:00
committed by Julius Härtl
parent 7c552e9a52
commit ef64dfc5a2

View File

@@ -105,6 +105,13 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
} }
}, true); }, true);
} }
$scope.$watch(function () {
return $scope.boardservice.data;
}, function () {
filterData();
}, true);
/* Watch for board filter change */ /* Watch for board filter change */
$scope.$watchCollection(function(){ $scope.$watchCollection(function(){
return $state.params; return $state.params;