linter fixes

This commit is contained in:
Gamebrary 2020-11-01 09:20:48 -07:00
parent 5928d8b299
commit 878e6b6278

View file

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