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 GitHub
parent 8beca1cb8d
commit 76abc184ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,8 +147,8 @@
<div>
<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>
{{#if (not api.isCreate)}}
{{#if (not-eq form.item.ID 'anonymous') }}
<ConfirmationDialog @message="Are you sure you want to delete this Intention?">
<BlockSlot @name="action" as |confirm|>