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">
|
|
|
|
{{d-icon "history"}}
|
|
|
|
</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
|
|
|
|
validationMessage=this.validationMessage
|
|
|
|
preview=this.preview
|
|
|
|
isSecret=this.isSecret
|
|
|
|
allowAny=this.allowAny
|
|
|
|
changeValueCallback=this.changeValueCallback
|
|
|
|
}}
|
|
|
|
{{/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">
|
2023-03-01 04:12:39 -05:00
|
|
|
<DButton class="ok" @action={{this.update}} @icon="check" />
|
|
|
|
<DButton class="cancel" @action={{this.cancel}} @icon="times" />
|
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}}
|
2023-03-01 04:12:39 -05:00
|
|
|
<DButton @action={{this.toggleSecret}} @icon="far-eye-slash" />
|
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
|
2023-03-01 04:12:39 -05:00
|
|
|
class="btn-default undo"
|
|
|
|
@action={{this.resetDefault}}
|
2022-06-30 06:30:50 -04:00
|
|
|
@icon="undo"
|
|
|
|
@label="admin.settings.reset"
|
|
|
|
/>
|
2015-03-02 12:12:19 -05:00
|
|
|
{{/if}}
|