mirror of
https://github.com/romancm/gamebrary
synced 2024-12-18 15:23:14 +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: {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue