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 @@