mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:58:48 +08:00
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:
@ -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}} />
|
||||
|
Reference in New Issue
Block a user