diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 2178c09ce..1f492c6fd 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -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(); diff --git a/js/public/app.js b/js/public/app.js index 5013821ec..3ff184807 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -362,6 +362,20 @@ app.controller('CardController', ["$scope", "$rootScope", "$routeParams", "$loca }, 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) { @@ -374,10 +388,6 @@ app.controller('CardController', ["$scope", "$rootScope", "$routeParams", "$loca $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(); diff --git a/templates/part.card.php b/templates/part.card.php index 924f1df48..18b17e61a 100644 --- a/templates/part.card.php +++ b/templates/part.card.php @@ -8,15 +8,15 @@
 

+
-
-
{{ - cardservice.getCurrent().title }} +
+ {{ cardservice.getCurrent().title }}

@@ -34,7 +34,7 @@ style="width:100%;" title="Choose a label" placeholder="Add a label" on-select="labelAssign($item, $model)" - on-remove="labelRemove($item, $model)"> + on-remove="labelRemove($item, $model)" ng-disabled="archived"> {{$item.title}} @@ -53,7 +53,7 @@ title="Choose a user to assign" placeholder="Assign users ..." on-select="userAssign($item, $model)" - on-remove="userRemove($item, $model)"> + on-remove="userRemove($item, $model)" ng-disabled="archived"> {{$item.title}} -