DEV: Use action helper in `bulk-tag` modal (#18885)

Passing a string action name to `DButton` causes it to use `sendAction`, which is deprecated and will be removed in Ember 4.x. The action helper converts a string to a closure action.

This also fixes compatibility with https://github.com/discourse/discourse/pull/17767
This commit is contained in:
David Taylor 2022-11-04 17:26:31 +00:00 committed by GitHub
parent 11f3618b80
commit 38bb00edce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
<p><TagChooser @tags={{this.tags}} @categoryId={{this.categoryId}} /></p>
<DButton @action={{this.action}} @disabled={{this.emptyTags}} @label={{concat "topics.bulk." this.label}} />
<DButton @action={{action this.action}} @disabled={{this.emptyTags}} @label={{concat "topics.bulk." this.label}} />