discourse/app/assets/javascripts/admin/addon/components/permalink-form.hbs
Godfrey Chan 8444c865e9
DEV: remove slightly less trivial {{action}} usages (#24289)
Follow-up to #24278 that is slightly less trivial.

* Some were "trivial" usages that were missed in the previous PR because the same file that had at least one other non-trivial usage.
* These involve extra arguments or inheritance but I have checked that they seem correct.
2023-11-13 13:29:20 +01:00

38 lines
973 B
Handlebars

<div class="permalink-form">
<div class="inline-form">
<label>{{i18n "admin.permalink.form.label"}}</label>
<TextField
@value={{this.url}}
@disabled={{this.formSubmitted}}
@class="permalink-url"
@placeholderKey="admin.permalink.url"
@autocorrect="off"
@autocapitalize="off"
/>
<ComboBox
@content={{this.permalinkTypes}}
@value={{this.permalinkType}}
@onChange={{action (mut this.permalinkType)}}
@class="permalink-type"
/>
<TextField
@value={{this.permalinkTypeValue}}
@disabled={{this.formSubmitted}}
@class="permalink-destination"
@placeholderKey={{this.permalinkTypePlaceholder}}
@autocorrect="off"
@autocapitalize="off"
@keyDown={{this.submitFormOnEnter}}
/>
<DButton
@action={{this.onSubmit}}
@disabled={{this.formSubmitted}}
@label="admin.permalink.form.add"
class="permalink-add"
/>
</div>
</div>