discourse/app/assets/javascripts/admin/addon/components/screened-ip-address-form.hbs
Jarek Radosz 11067c73d0
DEV: Use fn+mut instead of action+mut (#26057)
One step closer to removing all `action` helper usage
2024-03-06 18:05:03 +01:00

23 lines
546 B
Handlebars

<label>{{i18n "admin.logs.screened_ips.form.label"}}</label>
<TextField
@value={{this.ip_address}}
@disabled={{this.formSubmitted}}
@placeholderKey="admin.logs.screened_ips.form.ip_address"
@autocorrect="off"
@autocapitalize="off"
class="ip-address-input"
/>
<ComboBox
@content={{this.actionNames}}
@value={{this.actionName}}
@onChange={{fn (mut this.actionName)}}
/>
<DButton
@action={{this.submitForm}}
@disabled={{this.formSubmitted}}
@label="admin.logs.screened_ips.form.add"
type="submit"
class="btn-default"
/>