ui: Make sure the intention create form has a cancel button (#8308)

This commit is contained in:
John Cowen 2020-07-14 18:44:00 +01:00 committed by hashicorp-ci
parent 625055a556
commit 3a8d36bff8
1 changed files with 1 additions and 1 deletions

View File

@ -147,8 +147,8 @@
<div> <div>
<button type="submit" disabled={{or api.data.isInvalid api.disabled}}>Save</button> <button type="submit" disabled={{or api.data.isInvalid api.disabled}}>Save</button>
{{#if (not api.isCreate)}}
<button type="reset" onclick={{action oncancel api.data}} disabled={{api.disabled}}>Cancel</button> <button type="reset" onclick={{action oncancel api.data}} disabled={{api.disabled}}>Cancel</button>
{{#if (not api.isCreate)}}
{{#if (not-eq form.item.ID 'anonymous') }} {{#if (not-eq form.item.ID 'anonymous') }}
<ConfirmationDialog @message="Are you sure you want to delete this Intention?"> <ConfirmationDialog @message="Are you sure you want to delete this Intention?">
<BlockSlot @name="action" as |confirm|> <BlockSlot @name="action" as |confirm|>