mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 21:04:04 +08:00
ee0fef489f
To satisfy updated eslint configuration
19 lines
407 B
Plaintext
19 lines
407 B
Plaintext
import Component from "@glimmer/component";
|
|
import { isTesting } from "discourse-common/config/environment";
|
|
|
|
export default class DFloatPortal extends Component {
|
|
get inline() {
|
|
return this.args.inline ?? isTesting();
|
|
}
|
|
|
|
<template>
|
|
{{#if this.inline}}
|
|
{{yield}}
|
|
{{else}}
|
|
{{#in-element @portalOutletElement}}
|
|
{{yield}}
|
|
{{/in-element}}
|
|
{{/if}}
|
|
</template>
|
|
}
|