DEV: Add plugin outlets on the user-dropdown/notifications component (#27025)

This commit is contained in:
Sérgio Saquetim 2024-05-14 21:40:38 -03:00 committed by GitHub
parent 9e40933d83
commit 454a343188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ import Component from "@glimmer/component";
import { hash } from "@ember/helper";
import { service } from "@ember/service";
import { htmlSafe } from "@ember/template";
import PluginOutlet from "discourse/components/plugin-outlet";
import {
addExtraUserClasses,
renderAvatar,
@ -44,6 +45,7 @@ export default class Notifications extends Component {
}
<template>
<PluginOutlet @name="user-dropdown-notifications__before" />
{{this.avatar}}
{{#if this._shouldHighlightAvatar}}
@ -118,5 +120,6 @@ export default class Notifications extends Component {
</a>
{{/if}}
{{/if}}
<PluginOutlet @name="user-dropdown-notifications__after" />
</template>
}