mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 12:53:45 +08:00
18 lines
494 B
Plaintext
18 lines
494 B
Plaintext
|
import Component from "@glimmer/component";
|
||
|
import { inject as service } from "@ember/service";
|
||
|
import DHeadlessTooltip from "float-kit/components/d-headless-tooltip";
|
||
|
|
||
|
export default class DTooltips extends Component {
|
||
|
@service tooltip;
|
||
|
|
||
|
<template>
|
||
|
<div id="d-tooltip-portals"></div>
|
||
|
|
||
|
{{#each this.tooltip.registeredTooltips key="id" as |tooltip|}}
|
||
|
{{#if tooltip.detachedTrigger}}
|
||
|
<DHeadlessTooltip @tooltip={{tooltip}} />
|
||
|
{{/if}}
|
||
|
{{/each}}
|
||
|
</template>
|
||
|
}
|