Webmail: new option to create subfolder

This commit is contained in:
Francis Lachapelle
2014-12-18 16:30:17 -05:00
parent 494a809276
commit 53ea174674
2 changed files with 16 additions and 3 deletions

View File

@@ -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>

View File

@@ -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