mirror of
https://github.com/romancm/gamebrary
synced 2024-12-19 15:53:06 +00:00
linter fixes
This commit is contained in:
parent
5928d8b299
commit
878e6b6278
1 changed files with 3 additions and 3 deletions
|
@ -92,18 +92,18 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
async uploadWallpaper() {
|
uploadWallpaper() {
|
||||||
if (this.isDuplicate) {
|
if (this.isDuplicate) {
|
||||||
return this.$bvToast.toast('File already exists', { title: '!', variant: 'warning' });
|
return this.$bvToast.toast('File already exists', { title: '!', variant: 'warning' });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.file) {
|
if (!this.file) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.saving = true;
|
this.saving = true;
|
||||||
|
|
||||||
this.$store.dispatch('UPLOAD_WALLPAPER', this.file)
|
return this.$store.dispatch('UPLOAD_WALLPAPER', this.file)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$bvToast.toast('File uploaded', { title: 'Success', variant: 'success' });
|
this.$bvToast.toast('File uploaded', { title: 'Success', variant: 'success' });
|
||||||
this.file = null;
|
this.file = null;
|
||||||
|
|
Loading…
Reference in a new issue