mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 18:35:31 +08:00
f1bb1db354
From ember-template-lint documentation (https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-unbound.md): ``` {{unbound}} is a legacy hold over from the days in which Ember's template engine was less performant. Its use today is vestigial, and it no longer offers performance benefits. It is also a poor practice to use it for rendering only the initial value of a property that may later change. ``` Co-Authored-By: Jarek Radosz <jradosz@gmail.com>
21 lines
830 B
Handlebars
21 lines
830 B
Handlebars
<div class='setting-label'>
|
|
<h3>{{settingName}}</h3>
|
|
{{#if defaultIsAvailable}}
|
|
<a href onClick={{action 'setDefaultValues'}}>{{setting.setDefaultValuesLabel}}</a>
|
|
{{/if}}
|
|
</div>
|
|
<div class="setting-value">
|
|
{{component componentName setting=setting value=buffered.value validationMessage=validationMessage preview=preview isSecret=isSecret allowAny=allowAny}}
|
|
</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"}}
|
|
</div>
|
|
{{else if setting.overridden}}
|
|
{{#if setting.secret}}
|
|
{{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"}}
|
|
{{/if}}
|