mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 01:04:00 +08:00
ee0fef489f
To satisfy updated eslint configuration
19 lines
407 B
JavaScript
19 lines
407 B
JavaScript
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>
|
|
}
|