mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 01:33:38 +08:00
ee0fef489f
To satisfy updated eslint configuration
28 lines
848 B
JavaScript
28 lines
848 B
JavaScript
import Component from "@glimmer/component";
|
|
import { inject as service } from "@ember/service";
|
|
import DInlineFloat from "float-kit/components/d-inline-float";
|
|
import { MENU } from "float-kit/lib/constants";
|
|
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
|
|
|
export default class DInlineMenu extends Component {
|
|
@service menu;
|
|
|
|
<template>
|
|
{{! template-lint-disable modifier-name-case }}
|
|
<div
|
|
id={{MENU.portalOutletId}}
|
|
{{didInsert this.menu.registerPortalOutletElement}}
|
|
></div>
|
|
|
|
<DInlineFloat
|
|
@instance={{this.menu.activeMenu}}
|
|
@portalOutletElement={{this.menu.portalOutletElement}}
|
|
@trapTab={{this.menu.activeMenu.options.trapTab}}
|
|
@mainClass="fk-d-menu"
|
|
@innerClass="fk-d-menu__inner-content"
|
|
@role="dialog"
|
|
@inline={{@inline}}
|
|
/>
|
|
</template>
|
|
}
|