Fix stack renaming, archived card adding

This commit is contained in:
Julius Haertl
2016-10-28 01:59:59 +02:00
parent 5e7f0a044d
commit 461269d7d2
6 changed files with 30 additions and 16 deletions

View File

@@ -40,6 +40,10 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
};
$scope.boardCreate = function () {
if(!$scope.newBoard.title || !$scope.newBoard.color) {
$scope.status.addBoard=false;
return;
}
BoardService.create($scope.newBoard)
.then(function (response) {
$scope.newBoard = {};
@@ -65,7 +69,6 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ
};
$scope.filterData = function () {
console.log("filter");
angular.copy($scope.boardservice.getData(), $scope.boardservice.sorted);
$scope.boardservice.sorted = $filter('orderBy')($scope.boardservice.sorted, 'title');
};