committed by
Julius Härtl
parent
ab73f58fd8
commit
f01cd506f7
@@ -323,7 +323,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
|
||||
// remove from board data
|
||||
var i = BoardService.getCurrent().labels.indexOf(label);
|
||||
BoardService.getCurrent().labels.splice(i, 1);
|
||||
|
||||
|
||||
// remove from cards
|
||||
var cards = CardService.data;
|
||||
for (var card in cards) {
|
||||
@@ -346,11 +346,17 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
|
||||
BoardService.getCurrent().labels.push(data);
|
||||
$scope.status.createLabel = false;
|
||||
$scope.newLabel = {};
|
||||
}).catch(err => {
|
||||
OC.Notification.showTemporary('Duplicate label name is not allowed');
|
||||
});
|
||||
};
|
||||
|
||||
$scope.labelUpdate = function (label) {
|
||||
label.edit = false;
|
||||
LabelService.update(label);
|
||||
LabelService.update(label).catch(err => {
|
||||
label.title('XXX');
|
||||
OC.Notification.showTemporary('Duplicate label name is not allowed');
|
||||
});
|
||||
|
||||
// update labels in UI
|
||||
var cards = CardService.data;
|
||||
|
||||
Reference in New Issue
Block a user