Skip to content

Commit ed3f6e7

Browse files
authored
DEV: Don't use string-based actions (#43)
1 parent 326bcab commit ed3f6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/discourse/components/custom-new-topic-button.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class CustomNewTopicButton extends Component {
6161
{{#if (and this.filteredSetting (or @category @tag))}}
6262
{{#if @canCreateTopic}}
6363
<DButton
64-
@action={{action "customCreateTopic"}}
64+
@action={{this.customCreateTopic}}
6565
@icon={{this.customCreateTopicIcon}}
6666
@translatedLabel={{this.customCreateTopicLabel}}
6767
@disabled={{@createTopicDisabled}}

0 commit comments

Comments
 (0)