mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-09 22:07:12 +00:00
(fix) a bit more error handling
This commit is contained in:
1 parent
1a78882c51
commit
5ef2db59f7
1 file changed
+7
-1
@@ -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