From 185238a18fa0ce856d3c1da48a457d5f2af15f8d Mon Sep 17 00:00:00 2001 From: Rene Fischer Date: Sat, 22 Aug 2020 22:25:35 +0200 Subject: [PATCH] rework maxCardCount maxCardCount is now a global variable it can be updated simply by changing the number it can also be disabled via a button --- src/App.vue | 16 +++++-- src/components/learn/Learn.vue | 9 ++-- src/components/settings/MaxCardCountCard.vue | 42 +++++++++++++------ src/components/settings/Settings.vue | 10 ++++- src/helpers/eventListener.ts | 13 ++++-- src/helpers/maxCardCountLocalStorageHelper.ts | 26 ------------ src/helpers/updateMaxCardCount.ts | 11 +++++ src/types/index.ts | 1 + src/views/Learn.vue | 4 +- src/views/Settings.vue | 10 ++++- 10 files changed, 88 insertions(+), 54 deletions(-) delete mode 100644 src/helpers/maxCardCountLocalStorageHelper.ts create mode 100644 src/helpers/updateMaxCardCount.ts diff --git a/src/App.vue b/src/App.vue index 0e22d19..7d21b89 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,11 @@ :decks="decks" :numberOfSelectedDecks="numberOfSelectedDecks" > - + {{ snackbar.text }}