Add error feedback when mailbox name is already taken

This commit is contained in:
Johannes Zellner
2018-04-09 16:21:32 +02:00
parent 63e43e8d20
commit 9acde7fe86
2 changed files with 8 additions and 5 deletions

View File

@@ -225,7 +225,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
Client.addMailbox($scope.selectedDomain.domain, $scope.mailboxes.add.name, $scope.mailboxes.add.owner.id, function (error) {
if (error) {
$scope.mailboxes.add.busy = false;
$scope.mailboxes.add.error = error.message;
$scope.mailboxes.add.error = error;
return;
}