consul/ui-v2/app/components/confirmation-dialog/index.hbs

11 lines
292 B
Handlebars

{{yield}}
<YieldSlot @name="action" @params={{block-params confirm cancel}}>
{{#if (or permanent (not confirming))}}
{{yield}}
{{/if}}
</YieldSlot>
<YieldSlot @name="dialog" @params={{block-params execute cancel message actionName}}>
{{#if confirming }}
{{yield}}
{{/if}}
</YieldSlot>