mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-01 20:42:19 +08:00
[snappymail] Allow deletion of parent folder with subfolders
This change brings snappymails behaviour in line with RFC3501, section 6.3.4, by allowing "real" (i.e. non-\Noselect) parent folders to be deleted and by not performing a recursive deletion of subfolders.
This commit is contained in:
parent
ef4d604f6d
commit
72ff960114
2 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ export class FolderModel extends AbstractModel {
|
|||
return null;
|
||||
},
|
||||
|
||||
canBeDeleted: () => !folder.isSystemFolder() && !folder.subFolders().length,
|
||||
canBeDeleted: () => !folder.isSystemFolder() && folder.selectable,
|
||||
|
||||
canBeSubscribed: () => !folder.isSystemFolder()
|
||||
&& SettingsUserStore.hideUnsubscribed()
|
||||
|
|
|
@ -98,7 +98,7 @@ export class FoldersUserSettings {
|
|||
if (folderToRemove === folder) {
|
||||
return true;
|
||||
}
|
||||
folder.subFolders.remove(fRemoveFolder);
|
||||
//folder.subFolders.remove(fRemoveFolder);
|
||||
return false;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue