2015-03-02 12:12:19 -05:00
|
|
|
<div class="setting-label">
|
2020-11-12 07:07:36 -05:00
|
|
|
<h3>
|
2023-03-01 04:12:39 -05:00
|
|
|
{{this.settingName}}
|
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.staffLogFilter}}
|
2022-07-06 04:37:54 -04:00
|
|
|
<LinkTo
|
|
|
|
@route="adminLogs.staffActionLogs"
|
|
|
|
@query={{hash filters=this.staffLogFilter force_refresh=true}}
|
|
|
|
title={{i18n "admin.settings.history"}}
|
|
|
|
>
|
2020-11-12 07:07:36 -05:00
|
|
|
<span class="history-icon">
|
2024-09-13 11:50:52 -04:00
|
|
|
{{d-icon "clock-rotate-left"}}
|
2020-11-12 07:07:36 -05:00
|
|
|
</span>
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2020-11-12 07:07:36 -05:00
|
|
|
{{/if}}
|
|
|
|
</h3>
|
2023-03-01 04:12:39 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.defaultIsAvailable}}
|
2023-03-01 04:12:39 -05:00
|
|
|
<DButton
|
|
|
|
class="btn-link"
|
|
|
|
@action={{this.setDefaultValues}}
|
|
|
|
@translatedLabel={{this.setting.setDefaultValuesLabel}}
|
|
|
|
/>
|
2019-11-28 00:19:01 -05:00
|
|
|
{{/if}}
|
2015-03-02 12:12:19 -05:00
|
|
|
</div>
|
2023-03-01 04:12:39 -05:00
|
|
|
|
2015-03-02 12:12:19 -05:00
|
|
|
<div class="setting-value">
|
2024-03-05 19:24:29 -05:00
|
|
|
{{#if this.settingEditButton}}
|
|
|
|
<DButton
|
|
|
|
@action={{this.settingEditButton.action}}
|
|
|
|
@icon={{this.settingEditButton.icon}}
|
|
|
|
@label={{this.settingEditButton.label}}
|
|
|
|
class="setting-value-edit-button"
|
|
|
|
/>
|
2024-03-13 00:38:21 -04:00
|
|
|
|
|
|
|
<SiteSettings::Description @description={{this.setting.description}} />
|
2024-03-05 19:24:29 -05:00
|
|
|
{{else}}
|
|
|
|
{{component
|
|
|
|
this.componentName
|
|
|
|
setting=this.setting
|
|
|
|
value=this.buffered.value
|
|
|
|
preview=this.preview
|
|
|
|
isSecret=this.isSecret
|
|
|
|
allowAny=this.allowAny
|
|
|
|
changeValueCallback=this.changeValueCallback
|
2024-08-15 12:38:47 -04:00
|
|
|
setValidationMessage=this.setValidationMessage
|
2024-03-05 19:24:29 -05:00
|
|
|
}}
|
2024-08-15 12:38:47 -04:00
|
|
|
<SettingValidationMessage @message={{this.validationMessage}} />
|
|
|
|
{{#if this.displayDescription}}
|
|
|
|
<SiteSettings::Description @description={{this.setting.description}} />
|
|
|
|
{{/if}}
|
2024-03-05 19:24:29 -05:00
|
|
|
{{/if}}
|
2015-03-02 12:12:19 -05:00
|
|
|
</div>
|
2023-03-01 04:12:39 -05:00
|
|
|
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.dirty}}
|
2015-03-02 12:12:19 -05:00
|
|
|
<div class="setting-controls">
|
2024-07-14 23:07:36 -04:00
|
|
|
<DButton
|
|
|
|
@action={{this.update}}
|
|
|
|
@icon="check"
|
2024-08-15 12:38:47 -04:00
|
|
|
@disabled={{this.disableSaveButton}}
|
2024-10-22 18:04:42 -04:00
|
|
|
@ariaLabel="admin.settings.save"
|
2024-07-14 23:07:36 -04:00
|
|
|
class="ok setting-controls__ok"
|
|
|
|
/>
|
|
|
|
<DButton
|
|
|
|
@action={{this.cancel}}
|
2024-09-13 11:50:52 -04:00
|
|
|
@icon="xmark"
|
2024-10-22 18:04:42 -04:00
|
|
|
@ariaLabel="admin.settings.cancel"
|
2024-07-14 23:07:36 -04:00
|
|
|
class="cancel setting-controls__cancel"
|
|
|
|
/>
|
2015-03-02 12:12:19 -05:00
|
|
|
</div>
|
2024-03-12 18:52:46 -04:00
|
|
|
{{else if this.overridden}}
|
2022-07-05 13:41:31 -04:00
|
|
|
{{#if this.setting.secret}}
|
2024-07-14 23:07:36 -04:00
|
|
|
<DButton
|
|
|
|
@action={{this.toggleSecret}}
|
|
|
|
@icon="far-eye-slash"
|
2024-10-22 18:04:42 -04:00
|
|
|
@ariaLabel="admin.settings.unmask"
|
2024-07-14 23:07:36 -04:00
|
|
|
class="setting-toggle-secret"
|
|
|
|
/>
|
2018-06-02 09:57:52 -04:00
|
|
|
{{/if}}
|
2023-03-01 04:12:39 -05:00
|
|
|
|
2022-06-30 06:30:50 -04:00
|
|
|
<DButton
|
2024-08-15 12:38:47 -04:00
|
|
|
class="btn-default undo setting-controls__undo"
|
2023-03-01 04:12:39 -05:00
|
|
|
@action={{this.resetDefault}}
|
2024-09-13 11:50:52 -04:00
|
|
|
@icon="arrow-rotate-left"
|
2022-06-30 06:30:50 -04:00
|
|
|
@label="admin.settings.reset"
|
|
|
|
/>
|
2015-03-02 12:12:19 -05:00
|
|
|
{{/if}}
|