mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-10 01:11:22 +00:00
Webmail: new option to create subfolder
This commit is contained in:
@@ -219,16 +219,19 @@
|
||||
<!-- dropdown menu for addressbook options button -->
|
||||
<div id="folderProperties" class="f-dropdown icons-dropdown" data-dropdown-content="dropdown-content">
|
||||
<ul class="button-group">
|
||||
<li data-ng-show="currentFolder.type == 'folder'">
|
||||
<li data-ng-show="currentFolder.isEditable">
|
||||
<span class="button" data-ng-click="edit()"><i class="icon-pencil"><!-- rename --></i></span>
|
||||
</li>
|
||||
<li data-ng-show="currentFolder.type == 'folder'">
|
||||
<li data-ng-show="currentFolder.isEditable">
|
||||
<span class="button" data-ng-click="newFolder(currentFolder)"><i class="icon-plus"><!-- new mailbox --></i></span>
|
||||
</li>
|
||||
<li data-ng-show="currentFolder.isEditable">
|
||||
<span class="button" data-ng-click="share()"><i class="icon-earth"><!-- share --></i></span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="button" data-ng-click="exportMails()"><i class="icon-ion-ios7-upload-outline"><!-- export --></i></span>
|
||||
</li>
|
||||
<li data-ng-show="currentFolder.type == 'folder'">
|
||||
<li data-ng-show="currentFolder.isEditable">
|
||||
<span class="button" data-ng-click="confirmDelete()"><i class="icon-trash"><!-- delete --></i></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -235,6 +235,16 @@
|
||||
return Mailbox.$$resource.post(this.id, 'batchDelete', {uids: uids});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $newMailbox
|
||||
* @memberof Account.prototype
|
||||
* @desc Create a new mailbox on the server and refresh the list of mailboxes.
|
||||
* @returns a promise of the HTTP operations
|
||||
*/
|
||||
Mailbox.prototype.$newMailbox = function(path, name) {
|
||||
return this.$account.$newMailbox(path, name);
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $omit
|
||||
* @memberof Mailbox.prototype
|
||||
|
||||
Reference in New Issue
Block a user