From ef64dfc5a2f6446823280a5ddf9a2bed2a8616e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 1 Dec 2017 17:05:48 +0100 Subject: [PATCH] Fix bug when board list was not in sync when adding a new one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- js/controller/ListController.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/controller/ListController.js b/js/controller/ListController.js index 419572ce4..7713dcf22 100644 --- a/js/controller/ListController.js +++ b/js/controller/ListController.js @@ -105,6 +105,13 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ } }, true); } + + $scope.$watch(function () { + return $scope.boardservice.data; + }, function () { + filterData(); + }, true); + /* Watch for board filter change */ $scope.$watchCollection(function(){ return $state.params;