mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 02:02:01 +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 { action } from "@ember/object";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { or } from "truth-helpers";
|
import { or } from "truth-helpers";
|
||||||
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import { wantsNewWindow } from "discourse/lib/intercept-click";
|
import { wantsNewWindow } from "discourse/lib/intercept-click";
|
||||||
import i18n from "discourse-common/helpers/i18n";
|
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"
|
"header-dropdown-toggle current-user user-menu-panel"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<PluginOutlet @name="user-dropdown-button__before" />
|
||||||
<button
|
<button
|
||||||
class="icon btn-flat"
|
class="icon btn-flat"
|
||||||
aria-haspopup="true"
|
aria-haspopup="true"
|
||||||
|
@ -45,6 +47,7 @@ export default class UserDropdown extends Component {
|
||||||
>
|
>
|
||||||
<Notifications @active={{@active}} />
|
<Notifications @active={{@active}} />
|
||||||
</button>
|
</button>
|
||||||
|
<PluginOutlet @name="user-dropdown-button__after" />
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user