project: close token form on cancel

Fixes #192

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-03-05 15:07:06 +05:30
parent e42a5a9c2b
commit 0067c85d09
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
</a-form-item>
<div class="card-footer">
<!-- ToDo extract as component -->
<a-button @click="() => this.$router.back()">{{ this.$t('cancel') }}</a-button>
<a-button @click="() => $emit('close-action')">{{ this.$t('cancel') }}</a-button>
<a-button :loading="loading" type="primary" @click="handleSubmit">{{ this.$t('OK') }}</a-button>
</div>
</a-form>