diff --git a/src/pages/Wallpapers.vue b/src/pages/Wallpapers.vue index 2032d841..3ba27044 100644 --- a/src/pages/Wallpapers.vue +++ b/src/pages/Wallpapers.vue @@ -92,18 +92,18 @@ export default { }, methods: { - async uploadWallpaper() { + uploadWallpaper() { if (this.isDuplicate) { return this.$bvToast.toast('File already exists', { title: '!', variant: 'warning' }); } if (!this.file) { - return; + return false; } this.saving = true; - this.$store.dispatch('UPLOAD_WALLPAPER', this.file) + return this.$store.dispatch('UPLOAD_WALLPAPER', this.file) .then(() => { this.$bvToast.toast('File uploaded', { title: 'Success', variant: 'success' }); this.file = null;