Skip to content

Commit 93efc23

Browse files
authored
DEV: Don't use string-based actions (#48)
1 parent 9779436 commit 93efc23

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

assets/javascripts/discourse/connectors/top-notices/newsletter-banner.gjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,11 @@ export default class NewsletterBanner extends Component {
7777
{{/if}}
7878
</div>
7979
<div class="banner-controls">
80-
<DButton
81-
@icon="xmark"
82-
@action={{action "dismiss"}}
83-
class="close-btn"
84-
/>
80+
<DButton @icon="xmark" @action={{this.dismiss}} class="close-btn" />
8581
{{#unless this.subscribed}}
8682
<DButton
8783
@label="discourse_newsletter_integration.banner.subscribe"
88-
@action={{action "subscribe"}}
84+
@action={{this.subscribe}}
8985
@disabled={{this.disableControls}}
9086
class="btn-primary subscribe-btn"
9187
/>

0 commit comments

Comments
 (0)