From 90cd5ec5829b6e933cea442f1019c17d46ce06d9 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 19 Jul 2020 15:27:26 +0200 Subject: [PATCH] update --- src/components/AvatarEditor.vue | 2 ++ src/components/Preview.vue | 44 ++++++++++++++++++++++++---- src/layouts/Delegate.vue | 8 +---- src/store/index.ts | 7 +++-- src/views/Admin/OrganizationList.vue | 19 +++++++++--- src/views/Delegate/Gallery.vue | 6 +++- src/views/Delegate/Main.vue | 29 ++++++++++++++---- 7 files changed, 89 insertions(+), 26 deletions(-) diff --git a/src/components/AvatarEditor.vue b/src/components/AvatarEditor.vue index 9ea2871..a8619f0 100644 --- a/src/components/AvatarEditor.vue +++ b/src/components/AvatarEditor.vue @@ -15,6 +15,7 @@ canvas-color="white" :width="width" :height="height" + accept="image/jpeg,image/png" prevent-white-space :placeholder-font-size="22" @file-size-exceed="handleFileSizeExceed" @@ -60,6 +61,7 @@ text :loading="loading" color="primary" + :disabled="$store.state.delegate.validationState === 'pending'" @click="submit"> Sauvegarder diff --git a/src/components/Preview.vue b/src/components/Preview.vue index 320a614..c93b9d2 100644 --- a/src/components/Preview.vue +++ b/src/components/Preview.vue @@ -26,11 +26,27 @@ - - + + +
+ +
@@ -39,6 +55,10 @@