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:
parent
11f3618b80
commit
38bb00edce
|
@ -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}} />
|
||||
|
|
Loading…
Reference in New Issue