зеркало из https://github.com/nextcloud/deck.git
Make sure both board lists are initialized
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Родитель
5394d0f59b
Коммит
1ace5de9e6
|
@ -95,15 +95,15 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
|
|||
$scope.statusservice.setError('Error occured', error);
|
||||
});
|
||||
} else {
|
||||
/* Watch for data change of boardservice when boards are fetched */
|
||||
/* initialize main list controller when board list is loaded */
|
||||
var boardDataWatch = $scope.$watch(function () {
|
||||
return $scope.boardservice.data;
|
||||
return $scope.boardservice.loaded;
|
||||
}, function () {
|
||||
if (BoardService.loaded === true) {
|
||||
boardDataWatch();
|
||||
finishedLoading();
|
||||
}
|
||||
}, true);
|
||||
});
|
||||
}
|
||||
|
||||
$scope.$watch(function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче