Fix archived card editing

This commit is contained in:
Julius Haertl
2016-08-15 12:37:59 +02:00
parent 9d4ba71a3b
commit f573979a2a
3 changed files with 34 additions and 14 deletions

View File

@@ -19,6 +19,20 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
}, function(error) {
});
$scope.cardRenameShow = function() {
if($scope.archived)
return false;
else {
$scope.status.cardRename=true;
}
};
$scope.cardEditDescriptionShow = function() {
if($scope.archived)
return false;
else {
$scope.status.cardEditDescription=true;
}
};
// handle rename to update information on the board as well
$scope.cardRename = function(card) {
CardService.rename(card).then(function(data) {
@@ -31,10 +45,6 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
$scope.status.description = false;
}
$scope.cardEditDescription = function() {
$scope.status.cardEditDescription = true;
}
$scope.labelAssign = function(element, model) {
CardService.assignLabel($scope.cardId, element.id);
var card = CardService.getCurrent();