open-vault/ui/app/templates/components/identity/popup-metadata.hbs
Joshua Ogle 7eff7b51aa
UI: Confirm Action as a popover
* Refactors ConfirmAction implementation as a popover
* Improves copy surrounding consequences of destructive actions
* Moves 'Delete' buttons to Toolbar
2019-05-17 11:29:21 -06:00

18 lines
493 B
Handlebars

<PopupMenu @name="metadata-edit-menu">
<nav class="menu">
<ul class="menu-list">
<li class="action">
<ConfirmAction
@buttonClasses="link is-destroy"
@confirmTitle="Remove metadata?"
@confirmMessage="This data may be used outside of Vault."
@confirmButtonText="Remove"
@onConfirmAction={{action "performTransaction" model key}}
>
Remove
</ConfirmAction>
</li>
</ul>
</nav>
</PopupMenu>