discourse/app/assets/javascripts/admin/templates/components/site-setting.hbs

Failed to ignore revisions in .git-blame-ignore-revs.

21 lines
826 B
Handlebars
Raw Normal View History

<div class="setting-label">
<h3>{{settingName}}</h3>
{{#if defaultIsAvailable}}
<a href onClick={{action "setDefaultValues"}}>{{setting.setDefaultValuesLabel}}</a>
{{/if}}
2015-03-03 01:12:19 +08:00
</div>
<div class="setting-value">
{{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">
{{d-button class="ok" action=(action "update") icon="check"}}
{{d-button class="cancel" action=(action "cancel") icon="times"}}
2015-03-03 01:12:19 +08:00
</div>
{{else if setting.overridden}}
{{#if setting.secret}}
2019-01-22 19:02:02 +08:00
{{d-button action=(action "toggleSecret") icon="far-eye-slash"}}
{{/if}}
{{d-button class="btn-default undo" action=(action "resetDefault") icon="undo" label="admin.settings.reset"}}
2015-03-03 01:12:19 +08:00
{{/if}}