2015-03-03 01:12:19 +08:00
|
|
|
<div class="setting-label">
|
2020-03-09 22:28:31 +08:00
|
|
|
<h3>{{settingName}}</h3>
|
2019-12-04 14:13:41 +08:00
|
|
|
{{#if defaultIsAvailable}}
|
2020-02-11 22:55:16 +08:00
|
|
|
<a href onClick={{action "setDefaultValues"}}>{{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">
|
2019-11-28 13:19:01 +08:00
|
|
|
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage preview=preview isSecret=isSecret allowAny=allowAny}}
|
2015-03-03 01:12:19 +08:00
|
|
|
</div>
|
|
|
|
{{#if dirty}}
|
|
|
|
<div class="setting-controls">
|
2019-10-31 08:15:57 +08:00
|
|
|
{{d-button class="ok" action=(action "update") icon="check"}}
|
2019-01-10 18:06:01 +08:00
|
|
|
{{d-button class="cancel" action=(action "cancel") icon="times"}}
|
2015-03-03 01:12:19 +08:00
|
|
|
</div>
|
2015-05-28 23:34:44 +08:00
|
|
|
{{else if setting.overridden}}
|
2018-06-02 21:57:52 +08:00
|
|
|
{{#if setting.secret}}
|
2019-01-22 19:02:02 +08:00
|
|
|
{{d-button action=(action "toggleSecret") icon="far-eye-slash"}}
|
2018-06-02 21:57:52 +08:00
|
|
|
{{/if}}
|
2019-01-10 18:06:01 +08:00
|
|
|
{{d-button class="btn-default undo" action=(action "resetDefault") icon="undo" label="admin.settings.reset"}}
|
2015-03-03 01:12:19 +08:00
|
|
|
{{/if}}
|