More avatar providers #200

Merged
konrad merged 11 commits from feature/avatar into master 2020-08-02 17:17:36 +00:00
Showing only changes of commit a277c1ded5 - Show all commits

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