mirror of
https://github.com/moparisthebest/mail
synced 2024-12-23 07:48:48 -05:00
Merge remote-tracking branch 'origin/dev/WO-84'
This commit is contained in:
commit
c397210c24
@ -103,7 +103,31 @@ define(function(require) {
|
||||
return;
|
||||
}
|
||||
|
||||
var index;
|
||||
var index, trashFolder;
|
||||
|
||||
trashFolder = _.findWhere($scope.folders, {
|
||||
type: 'Trash'
|
||||
});
|
||||
|
||||
if (getFolder() === trashFolder) {
|
||||
$scope.state.dialog = {
|
||||
open: true,
|
||||
title: 'Remove permanently?',
|
||||
message: 'Do you want to remove this message permanently?',
|
||||
callback: function(ok) {
|
||||
$scope.state.dialog.open = false;
|
||||
|
||||
if (!ok) {
|
||||
return;
|
||||
}
|
||||
|
||||
removeLocalAndShowNext();
|
||||
removeRemote();
|
||||
}
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
||||
removeLocalAndShowNext();
|
||||
removeRemote();
|
||||
|
||||
@ -123,9 +147,6 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function removeRemote() {
|
||||
var trashFolder = _.findWhere($scope.folders, {
|
||||
type: 'Trash'
|
||||
});
|
||||
if (getFolder() === trashFolder) {
|
||||
emailDao.imapDeleteMessage({
|
||||
folder: getFolder().path,
|
||||
|
Loading…
Reference in New Issue
Block a user