mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
parent
e1a51ba69c
commit
bb906e61ab
3 changed files with 8 additions and 2 deletions
|
|
@ -34,7 +34,8 @@ export class AdminSettingsConfig /*extends AbstractViewSettings*/ {
|
||||||
name: skey,
|
name: skey,
|
||||||
value: item[0],
|
value: item[0],
|
||||||
type: getInputType(item[0], skey.includes('password')),
|
type: getInputType(item[0], skey.includes('password')),
|
||||||
comment: item[1]
|
comment: item[1],
|
||||||
|
options: item[2]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
cfg.push(section);
|
cfg.push(section);
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ class ActionsAdmin extends Actions
|
||||||
{
|
{
|
||||||
$aConfig = $this->Config()->jsonSerialize();
|
$aConfig = $this->Config()->jsonSerialize();
|
||||||
unset($aConfig['version']);
|
unset($aConfig['version']);
|
||||||
|
$aConfig['logs']['time_zone'][1] = '';
|
||||||
|
$aConfig['logs']['time_zone'][2] = \DateTimeZone::listIdentifiers();
|
||||||
return $this->DefaultResponse($aConfig);
|
return $this->DefaultResponse($aConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,10 @@
|
||||||
<!-- ko if: 'checkbox' == type -->
|
<!-- ko if: 'checkbox' == type -->
|
||||||
<input type="checkbox" data-bind="attr: {name: key, checked: value}">
|
<input type="checkbox" data-bind="attr: {name: key, checked: value}">
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
<!-- ko if: 'checkbox' != type -->
|
<!-- ko if: options -->
|
||||||
|
<select data-bind="attr: {name: key}, options: options, value: value"></select>
|
||||||
|
<!-- /ko -->
|
||||||
|
<!-- ko if: 'checkbox' != type && !options -->
|
||||||
<input data-bind="attr: {name: key, type: type}, value: value" autocorrect="off">
|
<input data-bind="attr: {name: key, type: type}, value: value" autocorrect="off">
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
<em data-bind="text: comment, visible: comment"></em>
|
<em data-bind="text: comment, visible: comment"></em>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue