Fix stateParam changes

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-05-28 15:16:20 +02:00
parent f5dc4ac0e9
commit c7586377ea
2 changed files with 6 additions and 4 deletions

View File

@@ -61,12 +61,14 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
$scope.boardservice.sorted = $filter('orderBy')($scope.boardservice.sorted, ['deletedAt', 'title']); $scope.boardservice.sorted = $filter('orderBy')($scope.boardservice.sorted, ['deletedAt', 'title']);
}; };
$scope.$state = $stateParams; $scope.$watchCollection(function(){
$scope.$watch('$state.filter', function (name) { return $state.params;
$scope.status.filter = name; }, function(){
$scope.status.filter = $state.params.filter;
$scope.filterData(); $scope.filterData();
}); });
$scope.selectColor = function(color) { $scope.selectColor = function(color) {
$scope.newBoard.color = color; $scope.newBoard.color = color;
}; };

View File

@@ -24,7 +24,7 @@
<td> <td>
<div class="hint"></div> <div class="hint"></div>
<div class="app-popover-menu-utils" ng-if="b.deletedAt == 0"> <div class="app-popover-menu-utils" ng-if="b.deletedAt == 0">
<button class="icon icon-more" title="More actions"></button> <button class="icon icon-more button-inline" title="More actions"></button>
<div class="popovermenu bubble hidden"> <div class="popovermenu bubble hidden">
<ul> <ul>
<li ng-if="boardservice.canManage(b) && !b.archived" ng-click="boardArchive(b)"> <li ng-if="boardservice.canManage(b) && !b.archived" ng-click="boardArchive(b)">