From db4677d751e45a2ad09314d633740abd4082263c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 23 May 2019 13:58:59 +0200 Subject: [PATCH] deck editing --- frontend/src/components/Deck.vue | 1 + frontend/src/components/DeckList.vue | 13 ++++- frontend/src/components/forms/DeckEditor.vue | 61 ++++++++++++-------- 3 files changed, 49 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/Deck.vue b/frontend/src/components/Deck.vue index b3ee2de..e73e5e3 100644 --- a/frontend/src/components/Deck.vue +++ b/frontend/src/components/Deck.vue @@ -35,6 +35,7 @@ :id="deck.id" :value="deck_list" @close="editing = false" + @change="$emit('change')" /> diff --git a/frontend/src/components/DeckList.vue b/frontend/src/components/DeckList.vue index 1ed0c2d..c6462db 100644 --- a/frontend/src/components/DeckList.vue +++ b/frontend/src/components/DeckList.vue @@ -1,6 +1,11 @@ @@ -65,6 +70,12 @@ export default { return result } + }, + + methods: { + refresh_decks() { + this.$asyncComputed.decks.update() + } } } diff --git a/frontend/src/components/forms/DeckEditor.vue b/frontend/src/components/forms/DeckEditor.vue index bbdde6d..14d542d 100644 --- a/frontend/src/components/forms/DeckEditor.vue +++ b/frontend/src/components/forms/DeckEditor.vue @@ -1,22 +1,22 @@