mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Support \noinferiors to disallow creating subfolders
This commit is contained in:
parent
d74407f36b
commit
5cdbba8da0
3 changed files with 8 additions and 12 deletions
|
|
@ -29,10 +29,8 @@ export class FolderCreatePopupView extends AbstractViewPopup {
|
|||
[],
|
||||
[['', '']],
|
||||
oItem => oItem ? oItem.detailedName() : '',
|
||||
FolderUserStore.namespace
|
||||
? item => !item.fullName.startsWith(FolderUserStore.namespace)
|
||||
: null,
|
||||
true
|
||||
item => !item.subFolders.allow
|
||||
|| (FolderUserStore.namespace && !item.fullName.startsWith(FolderUserStore.namespace))
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue