mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:52:45 +08:00
DEV: Add the user-dropdown-button__*
plugin outlets (#27122)
This commit is contained in:
parent
4334fc9bd3
commit
48b74245b9
|
@ -3,6 +3,7 @@ import { on } from "@ember/modifier";
|
|||
import { action } from "@ember/object";
|
||||
import { service } from "@ember/service";
|
||||
import { or } from "truth-helpers";
|
||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||
import concatClass from "discourse/helpers/concat-class";
|
||||
import { wantsNewWindow } from "discourse/lib/intercept-click";
|
||||
import i18n from "discourse-common/helpers/i18n";
|
||||
|
@ -33,6 +34,7 @@ export default class UserDropdown extends Component {
|
|||
"header-dropdown-toggle current-user user-menu-panel"
|
||||
}}
|
||||
>
|
||||
<PluginOutlet @name="user-dropdown-button__before" />
|
||||
<button
|
||||
class="icon btn-flat"
|
||||
aria-haspopup="true"
|
||||
|
@ -45,6 +47,7 @@ export default class UserDropdown extends Component {
|
|||
>
|
||||
<Notifications @active={{@active}} />
|
||||
</button>
|
||||
<PluginOutlet @name="user-dropdown-button__after" />
|
||||
</li>
|
||||
</template>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user