mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 09:27:03 +03:00
Added "subscribe" option to create folder popup
This commit is contained in:
parent
a568c3f4f8
commit
661e937fd1
3 changed files with 19 additions and 6 deletions
|
|
@ -223,11 +223,11 @@ trait Folders
|
|||
|
||||
try
|
||||
{
|
||||
$sFolderNameInUtf = $this->GetActionParam('Folder', '');
|
||||
$sFolderParentFullName = $this->GetActionParam('Parent', '');
|
||||
|
||||
$oFolder = $this->MailClient()->FolderCreate($sFolderNameInUtf, $sFolderParentFullName,
|
||||
!!$this->Config()->Get('labs', 'use_imap_list_subscribe', true));
|
||||
$oFolder = $this->MailClient()->FolderCreate(
|
||||
$this->GetActionParam('Folder', ''),
|
||||
$this->GetActionParam('Parent', ''),
|
||||
!!$this->GetActionParam('Subscribe', !!$this->Config()->Get('labs', 'use_imap_list_subscribe', true))
|
||||
);
|
||||
|
||||
// FolderInformation(string $sFolderName, int $iPrevUidNext = 0, array $aUids = array())
|
||||
return $this->DefaultResponse(__FUNCTION__, $oFolder);
|
||||
|
|
|
|||
|
|
@ -15,6 +15,13 @@
|
|||
autofocus="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="textInput: folderName, onEnter: createFolderCommand" />
|
||||
</div>
|
||||
<div class="control-group" data-bind="visible: useImapSubscribe, component: {
|
||||
name: 'Checkbox',
|
||||
params: {
|
||||
label: 'SETTINGS_FOLDERS/BUTTON_SUBSCRIBE',
|
||||
value: folderSubscribe
|
||||
}
|
||||
}"></div>
|
||||
</div>
|
||||
</div>
|
||||
<footer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue