Fix archived card editing
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user