From b32dc5957bdf563d5115b95c62c62c609cdbcb84 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Thu, 2 Feb 2017 16:25:30 +0100 Subject: [PATCH] use new store --- src/LessPass.vue | 6 +- src/components/Menu.vue | 45 +++++++----- src/components/VersionButton.vue | 13 ++-- src/domain/password.to.delete.js | 28 -------- src/store.to.delete.js | 149 --------------------------------------- src/store/actions.js | 10 ++- src/store/getters.js | 2 + src/store/index.js | 2 +- src/views/Login.vue | 8 +-- src/views/PasswordGenerator.vue | 45 +++++------- src/views/Passwords.vue | 6 +- 11 files changed, 73 insertions(+), 241 deletions(-) delete mode 100644 src/domain/password.to.delete.js delete mode 100644 src/store.to.delete.js diff --git a/src/LessPass.vue b/src/LessPass.vue index 87c95ec..cf90e95 100644 --- a/src/LessPass.vue +++ b/src/LessPass.vue @@ -48,10 +48,12 @@ }, computed: mapGetters(['version']), created(){ + this.$store.dispatch('loadPasswordFirstTime'); + const fiveMinutes = 1000 * 60 * 5; - this.$store.dispatch('REFRESH_TOKEN'); + this.$store.dispatch('refreshToken'); setInterval(() => { - this.$store.dispatch('REFRESH_TOKEN'); + this.$store.dispatch('refreshToken'); }, fiveMinutes); } } diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 1423234..bbbc3cc 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -1,5 +1,5 @@