mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 12:13:08 +00:00
load wallpapers from app.vue
This commit is contained in:
parent
f1a8c1c7b0
commit
37578f054a
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue