mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 05:05:15 +08:00
DEV: Add plugin outlets on the user-dropdown/notifications component (#27025)
This commit is contained in:
parent
9e40933d83
commit
454a343188
|
@ -2,6 +2,7 @@ import Component from "@glimmer/component";
|
||||||
import { hash } from "@ember/helper";
|
import { hash } from "@ember/helper";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import {
|
import {
|
||||||
addExtraUserClasses,
|
addExtraUserClasses,
|
||||||
renderAvatar,
|
renderAvatar,
|
||||||
|
@ -44,6 +45,7 @@ export default class Notifications extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<PluginOutlet @name="user-dropdown-notifications__before" />
|
||||||
{{this.avatar}}
|
{{this.avatar}}
|
||||||
|
|
||||||
{{#if this._shouldHighlightAvatar}}
|
{{#if this._shouldHighlightAvatar}}
|
||||||
|
@ -118,5 +120,6 @@ export default class Notifications extends Component {
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<PluginOutlet @name="user-dropdown-notifications__after" />
|
||||||
</template>
|
</template>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user