Ghost/ghost/admin/app/components/gh-alert.hbs
Kevin Ansfield e021843e3f Migrated notifications to Octane patterns
no issue

- migrated `notifications` service from EmberObject to true native class
  - switched to tracked properties and use of `TrackedArray`
  - swapped computed properties to getters
  - dropped unnecessary usage of `get` and `set`
- migrated alert/notification related components to Glimmer components
2022-05-25 12:16:37 +01:00

8 lines
353 B
Handlebars

<article class="gh-alert {{this.typeClass}}" ...attributes>
<div class="gh-alert-content">
{{@message.message}}
</div>
<button class="gh-alert-close" data-test-button="close-notification" type="button" {{on "click" this.closeNotification}}>
{{svg-jar "close-stroke"}}<span class="hidden">Close</span>
</button>
</article>