load wallpapers from app.vue

This commit is contained in:
Gamebrary 2020-08-28 14:57:28 -07:00
parent f1a8c1c7b0
commit 37578f054a

View file

@ -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)