mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-18 06:34:53 +00:00
fix(mail(web)): improve identification of mailboxes
This commit is contained in:
@@ -204,8 +204,17 @@
|
||||
this.$icon = 'thumb_down';
|
||||
}
|
||||
else if (this.type == 'additional') {
|
||||
this.$icon = 'folder';
|
||||
}
|
||||
else if (this.type == 'shared') {
|
||||
this.$icon = 'folder_shared';
|
||||
}
|
||||
else if (this.type == 'otherUsers') {
|
||||
this.$icon = 'folder_shared';
|
||||
}
|
||||
else if (this.type == 'dropbox') {
|
||||
this.$icon = 'drive_folder_upload';
|
||||
}
|
||||
else {
|
||||
this.$isSpecial = false;
|
||||
this.$icon = 'folder';
|
||||
@@ -514,6 +523,16 @@
|
||||
return this.flags.indexOf('noselect') >= 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function isWritable
|
||||
* @memberof Mailbox.prototype
|
||||
* @desc Checks the user can write to the mailbox
|
||||
* @returns true if messages can be inserted
|
||||
*/
|
||||
Mailbox.prototype.isWritable = function() {
|
||||
return this.flags.indexOf('noselect') < 0 || this.type == 'dropbox';
|
||||
};
|
||||
|
||||
/**
|
||||
* @function getClassName
|
||||
* @memberof Mailbox.prototype
|
||||
|
||||
@@ -271,7 +271,7 @@
|
||||
}; // delegate
|
||||
|
||||
this.isDroppableFolder = function(srcFolder, dstFolder) {
|
||||
return (dstFolder.id != srcFolder.id) && !dstFolder.isNoSelect();
|
||||
return (dstFolder.id != srcFolder.id) && dstFolder.isWritable();
|
||||
};
|
||||
|
||||
this.dragSelectedMessages = function(srcFolder, dstFolder, mode) {
|
||||
|
||||
Reference in New Issue
Block a user