Hide cropper after upload
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-08-02 14:57:12 +02:00
parent cce3b84f71
commit a277c1ded5
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 4 deletions

View File

@ -45,9 +45,7 @@
:src="avatarToCrop"
class="mb-4"
@ready="() => loading = false"
:stencil-props="{
aspectRatio: 1
}"
:stencil-props="{aspectRatio: 1}"
ref="cropper"/>
<a
class="button is-primary"
@ -119,7 +117,10 @@
this.success({message: 'The avatar has been set successfully!'}, this)
})
.catch(e => this.error(e, this))
.finally(() => this.loading = false)
.finally(() => {
this.loading = false
this.isCropAvatar = false
})
})
} else {
this.loading = false