fix cancel

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2021-03-11 10:03:30 +01:00
parent 435994fb1b
commit 1d12ab93f5
2 changed files with 3 additions and 2 deletions

View File

@@ -168,6 +168,7 @@ export default {
}, },
close() { close() {
this.$emit('close')
this.$root.$emit('close') this.$root.$emit('close')
}, },
async select() { async select() {

View File

@@ -49,10 +49,10 @@
</template> </template>
</DashboardWidget> </DashboardWidget>
<div class="center-button"> <div class="center-button">
<button @click="toggleAddCardModel" @close="toggleAddCardModel"> <button @click="toggleAddCardModel">
{{ t('deck', 'Add card') }} {{ t('deck', 'Add card') }}
</button> </button>
<CardCreateDialog v-if="showAddCardModal" /> <CardCreateDialog v-if="showAddCardModal" @close="toggleAddCardModel" />
</div> </div>
</div> </div>
</template> </template>