From 46953da4cc82ab178394d01c5769a6de5697fb26 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Thu, 23 Jul 2020 12:42:43 +0200 Subject: [PATCH] bugs fixes --- src/components/AdditionalContacts.vue | 2 +- src/components/AvatarEditor.vue | 12 ++- src/layouts/Delegate.vue | 141 +++++++++++++++++--------- src/store/index.ts | 7 ++ src/views/Delegate/Contact.vue | 3 +- src/views/Delegate/Gallery.vue | 7 +- src/views/Delegate/Main.vue | 21 ++-- 7 files changed, 131 insertions(+), 62 deletions(-) diff --git a/src/components/AdditionalContacts.vue b/src/components/AdditionalContacts.vue index 7297383..39f361a 100644 --- a/src/components/AdditionalContacts.vue +++ b/src/components/AdditionalContacts.vue @@ -156,7 +156,7 @@ export default { ] } }), - created () { + mounted () { let peoples = this.$store.state.data.contacts.peoples if (!Array.isArray(peoples)) { peoples = [] diff --git a/src/components/AvatarEditor.vue b/src/components/AvatarEditor.vue index b8bd8b2..446cff4 100644 --- a/src/components/AvatarEditor.vue +++ b/src/components/AvatarEditor.vue @@ -9,14 +9,15 @@ { + if (this.enabled) { + this.$refs.croppa.refresh() + } + }) }, clear: function () { this.plugin.remove() diff --git a/src/layouts/Delegate.vue b/src/layouts/Delegate.vue index 92ea7b7..c43dd93 100644 --- a/src/layouts/Delegate.vue +++ b/src/layouts/Delegate.vue @@ -29,6 +29,9 @@ + + Prévisualiser votre page + Ouvrir la page publique @@ -205,11 +208,24 @@ +