John Cowen 4fbbfdcfa2 ui: New overlays (#9305)
Replaces ember-popover with tippy.js based overlay modifier.
2020-12-02 09:44:06 +00:00

29 lines
644 B
Handlebars

{{yield}}
<InformedAction
class="confirmation-alert warning"
...attributes
>
<:header>
<YieldSlot @name="header">{{yield}}</YieldSlot>
</:header>
<:body>
<YieldSlot @name="body">{{yield}}</YieldSlot>
</:body>
<:actions as |Actions|>
<Actions.Action class="dangerous">
<YieldSlot @name="confirm" @params={{
block-params (component 'action'
onclick=(action @onclick)
)
}}
>
{{yield}}
</YieldSlot>
</Actions.Action>
<Actions.Action>
<Action @for={{@name}}>
Cancel
</Action>
</Actions.Action>
</:actions>
</InformedAction>