Skip to content

Commit

Permalink
DEV: correctly setup modifier (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux authored Oct 22, 2024
1 parent 3f37ca6 commit ef3e3cb
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Component from "@glimmer/component";
import { hash } from "@ember/helper";
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
import willDestroy from "@ember/render-modifiers/modifiers/will-destroy";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import { modifier } from "ember-modifier";
Expand Down Expand Up @@ -114,11 +112,7 @@ export default class DiscoursePostEvent extends Component {
>
<div class="discourse-post-event-widget">
{{#if @event}}
<header
class="event-header"
{{didInsert this.setupMessageBus}}
{{willDestroy this.teardownMessageBus}}
>
<header class="event-header" {{this.setupMessageBus}}>
<div class="event-date">
<div class="month">{{this.startsAtMonth}}</div>
<div class="day">{{this.startsAtDay}}</div>
Expand Down

0 comments on commit ef3e3cb

Please sign in to comment.