From 37578f054a65b90dbc4b6e33411d96022d1a1b36 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Fri, 28 Aug 2020 14:57:28 -0700 Subject: [PATCH] load wallpapers from app.vue --- src/App.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App.vue b/src/App.vue index 99d295a9..de0f8a3f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -122,7 +122,16 @@ export default { }); }, + loadWallpapers() { + this.$store.dispatch('LOAD_WALLPAPERS') + .catch(() => { + this.$bvToast.toast('There was an error loading wallpapers', { title: 'Error', variant: 'danger' }); + }); + }, + syncData() { + this.loadWallpapers(); + // TODO: track progresses as well // TODO: move to actions db.collection('lists').doc(this.userId)