only let uploader edit image

This commit is contained in:
Zutatensuppe 2021-07-11 18:44:59 +02:00
parent d2d5968d02
commit 65daeb0247
7 changed files with 115 additions and 7 deletions

View file

@ -179,9 +179,13 @@ export default defineComponent({
return await res.json()
},
async onSaveImageClick(data: any) {
await this.saveImage(data)
this.dialog = ''
await this.loadImages()
const res = await this.saveImage(data)
if (res.ok) {
this.dialog = ''
await this.loadImages()
} else {
alert(res.error)
}
},
async postToGalleryClick(data: any) {
this.uploading = 'postToGallery'