2015-03-03 01:12:19 +08:00
|
|
|
<div class="setting-label">
|
2020-11-12 20:07:36 +08:00
|
|
|
<h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.staffLogFilter}}
|
|
|
|
{{this.settingName}}
|
|
|
|
<LinkTo @route="adminLogs.staffActionLogs" @query={{hash filters=this.staffLogFilter force_refresh=true}} @title={{i18n "admin.settings.history"}}>
|
2020-11-12 20:07:36 +08:00
|
|
|
<span class="history-icon">
|
|
|
|
{{d-icon "history"}}
|
|
|
|
</span>
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2020-11-12 20:07:36 +08:00
|
|
|
{{else}}
|
2022-07-06 01:41:31 +08:00
|
|
|
{{this.settingName}}
|
2020-11-12 20:07:36 +08:00
|
|
|
{{/if}}
|
|
|
|
</h3>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.defaultIsAvailable}}
|
|
|
|
<a href onClick={{action "setDefaultValues"}}>{{this.setting.setDefaultValuesLabel}}</a>
|
2019-11-28 13:19:01 +08:00
|
|
|
{{/if}}
|
2015-03-03 01:12:19 +08:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2022-07-06 01:41:31 +08:00
|
|
|
{{component this.componentName setting=this.setting value=this.buffered.value validationMessage=this.validationMessage preview=this.preview isSecret=this.isSecret allowAny=this.allowAny}}
|
2015-03-03 01:12:19 +08:00
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{#if this.dirty}}
|
2015-03-03 01:12:19 +08:00
|
|
|
<div class="setting-controls">
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton @class="ok" @action={{action "update"}} @icon="check" />
|
|
|
|
<DButton @class="cancel" @action={{action "cancel"}} @icon="times" />
|
2015-03-03 01:12:19 +08:00
|
|
|
</div>
|
2022-07-06 01:41:31 +08:00
|
|
|
{{else if this.setting.overridden}}
|
|
|
|
{{#if this.setting.secret}}
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton @action={{action "toggleSecret"}} @icon="far-eye-slash" />
|
2018-06-02 21:57:52 +08:00
|
|
|
{{/if}}
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton @class="btn-default undo" @action={{action "resetDefault"}} @icon="undo" @label="admin.settings.reset" />
|
2015-03-03 01:12:19 +08:00
|
|
|
{{/if}}
|