From 878e6b6278b1ac146999926db71533c67a555558 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Sun, 1 Nov 2020 09:20:48 -0700 Subject: [PATCH] linter fixes --- src/pages/Wallpapers.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;