mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 09:03:54 +08:00
038e5deb2a
* `@ember/owner` instead of `@ember/application` * `discourse-i18n` instead of `I18n` * `{ service } from "@ember/service"` instead of `inject as service`
18 lines
448 B
Plaintext
18 lines
448 B
Plaintext
import Component from "@glimmer/component";
|
|
import { service } from "@ember/service";
|
|
import DHeadlessMenu from "float-kit/components/d-headless-menu";
|
|
|
|
export default class DMenus extends Component {
|
|
@service menu;
|
|
|
|
<template>
|
|
<div id="d-menu-portals"></div>
|
|
|
|
{{#each this.menu.registeredMenus key="id" as |menu|}}
|
|
{{#if menu.detachedTrigger}}
|
|
<DHeadlessMenu @menu={{menu}} />
|
|
{{/if}}
|
|
{{/each}}
|
|
</template>
|
|
}
|