Skip to content

Instantly share code, notes, and snippets.

@chrismllr
Last active February 11, 2019 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismllr/fff1fabba142d24c970b7fe59b295d2d to your computer and use it in GitHub Desktop.
Save chrismllr/fff1fabba142d24c970b7fe59b295d2d to your computer and use it in GitHub Desktop.
Confirm action - Template
{{! The rest of your application template }}
{{#if confirmAction.showPrompt}}
<ModalDialog>
<h2>{{confirmAction.title}}</h2>
<p>{{confirmAction.message}}</p>
<div class="flex justify-end p--default">
<button {{action "cancel" target=this.confirmAction}}>
Cancel
</button>
<button {{action "confirm" target=this.confirmAction}}>
Confirm
</button>
</div>
</ModalDialog>
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment