Add cancel button

This commit is contained in:
rijkvanzanten
2020-10-16 13:21:28 -04:00
parent 38440e229b
commit c601b790c7
8 changed files with 25 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<template>
<v-drawer active title="Activity Item" @toggle="close" @esc="close">
<v-drawer active title="Activity Item" @toggle="close" @cancel="close">
<v-progress-circular indeterminate v-if="loading" />
<template v-else-if="error">

View File

@@ -32,7 +32,7 @@
v-else
:active="true"
@toggle="cancelField"
@esc="cancelField"
@cancel="cancelField"
:title="
field === '+'
? $t('creating_new_field', { collection: collectionInfo.name })

View File

@@ -4,7 +4,7 @@
:active="true"
class="new-collection"
persistent
@esc="$router.push('/settings/data-model')"
@cancel="$router.push('/settings/data-model')"
>
<v-dialog :active="saveError !== null" @toggle="saveError = null" @esc="saveError = null">
<v-card class="selectable">