From 0a5df6accc0bbad7a62246fd5378327570f70656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 14 May 2019 13:45:41 +0200 Subject: [PATCH] cardsdb computed property --- frontend/src/views/UserCP.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/UserCP.vue b/frontend/src/views/UserCP.vue index 05550cf..0e53332 100644 --- a/frontend/src/views/UserCP.vue +++ b/frontend/src/views/UserCP.vue @@ -42,8 +42,7 @@ export default { data: () => ({ user: '', - decks: '', - cardsdb: null + decks: '' }), methods: { @@ -65,8 +64,11 @@ export default { } }, + computed: { + cardsdb: () => CardsDB + }, + mounted() { - this.cardsdb = CardsDB axios .post('/user/info', {