mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
(fix) a bit more error handling
This commit is contained in:
@@ -15,7 +15,13 @@
|
||||
Dialog.prompt(l('New folder'),
|
||||
l('Enter the new name of your folder :'))
|
||||
.then(function(name) {
|
||||
parentFolder.$newMailbox(parentFolder.id, name);
|
||||
parentFolder.$newMailbox(parentFolder.id, name)
|
||||
.then(function() {
|
||||
// success
|
||||
}, function(data, status) {
|
||||
Dialog.alert(l('An error occured while creating the mailbox "%{0}".', name),
|
||||
l(data.error));
|
||||
});
|
||||
});
|
||||
};
|
||||
$scope.editFolder = function(folder) {
|
||||
|
||||
Reference in New Issue
Block a user