mirror of
https://github.com/discourse/discourse.git
synced 2024-12-08 01:43:46 +08:00
1c87bb7fe9
1. Use `this.` instead of `{{action}}` where applicable 2. Use `{{fn}}` instead of `@actionParam` where applicable 3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded 4. Remove `btn` class (it's added automatically to all DButtons) 5. Remove `type="button"` (it's the default) 6. Use `concat-class` helper
16 lines
377 B
Handlebars
16 lines
377 B
Handlebars
<label class="checkbox-label">
|
|
<Input @type="checkbox" disabled={{this.disabled}} @checked={{this.buffer}} />
|
|
{{i18n this.labelKey}}
|
|
</label>
|
|
{{#if this.changed}}
|
|
<DButton
|
|
@action={{this.apply}}
|
|
@icon="check"
|
|
class="btn-primary btn-small submit-edit"
|
|
/>
|
|
<DButton
|
|
@action={{this.cancel}}
|
|
@icon="times"
|
|
class="btn-small cancel-edit"
|
|
/>
|
|
{{/if}} |