From a277c1ded581f6140c8f45a8b5c38ce501057ccf Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 2 Aug 2020 14:57:12 +0200 Subject: [PATCH] Hide cropper after upload --- src/components/user/avatar-settings.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/user/avatar-settings.vue b/src/components/user/avatar-settings.vue index c6d6d93e1..dc4bfe231 100644 --- a/src/components/user/avatar-settings.vue +++ b/src/components/user/avatar-settings.vue @@ -45,9 +45,7 @@ :src="avatarToCrop" class="mb-4" @ready="() => loading = false" - :stencil-props="{ - aspectRatio: 1 - }" + :stencil-props="{aspectRatio: 1}" ref="cropper"/> this.error(e, this)) - .finally(() => this.loading = false) + .finally(() => { + this.loading = false + this.isCropAvatar = false + }) }) } else { this.loading = false