Fix wallpaper download url being stored instead of reference

This commit is contained in:
Gamebrary 2020-08-26 08:47:12 -07:00
parent a1bf5f09d7
commit 9562b0a1b5

View file

@ -72,7 +72,7 @@
<b-dropdown-item
v-for="file in wallpapers"
:key="file.name"
@click="setWallpaper(file.url)"
@click="setWallpaper(file.fullPath)"
>
<b-img
thumbnail
@ -166,8 +166,8 @@ export default {
this.wallpaper = null;
},
async setWallpaper(url) {
this.wallpaper = url;
async setWallpaper(wallpaper) {
this.wallpaper = await this.$store.dispatch('LOAD_WALLPAPER', wallpaper);
},
submit(e) {