Hide cropper after upload
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
cce3b84f71
commit
a277c1ded5
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user