diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 5c1c87e79..0ebb557fa 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -100,13 +100,15 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo }; $scope.labelAssign = function (element, model) { - CardService.assignLabel($scope.cardId, element.id); - var card = CardService.getCurrent(); - StackService.updateCard(card); + CardService.assignLabel($scope.cardId, element.id).then(function (data) { + StackService.updateCard(CardService.getCurrent()); + }); }; $scope.labelRemove = function (element, model) { - CardService.removeLabel($scope.cardId, element.id); + CardService.removeLabel($scope.cardId, element.id).then(function (data) { + StackService.updateCard(CardService.getCurrent()); + }); }; $scope.setDuedate = function (duedate) {