Added "subscribe" option to create folder popup

This commit is contained in:
the-djmaze 2022-01-12 11:15:04 +01:00
parent a568c3f4f8
commit 661e937fd1
3 changed files with 19 additions and 6 deletions

View file

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

View file

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