From b81c096fe4e2c31555b9c4e16e3df13c4bb0b619 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 11 May 2024 12:30:10 -0600 Subject: [PATCH] add file-chooser to the profile image selection --- ...{GiftedPhotoDialog.vue => PhotoDialog.vue} | 66 +++++++++----- src/views/AccountViewView.vue | 85 +++++++++++++------ src/views/GiftedDetails.vue | 8 +- 3 files changed, 108 insertions(+), 51 deletions(-) rename src/components/{GiftedPhotoDialog.vue => PhotoDialog.vue} (89%) diff --git a/src/components/GiftedPhotoDialog.vue b/src/components/PhotoDialog.vue similarity index 89% rename from src/components/GiftedPhotoDialog.vue rename to src/components/PhotoDialog.vue index 93c3582..dcec9c9 100644 --- a/src/components/GiftedPhotoDialog.vue +++ b/src/components/PhotoDialog.vue @@ -34,7 +34,7 @@ backgroundColor: '#f8f8f8', margin: 'auto', }" - :img="URL.createObjectURL(blob)" + :img="createBlobURL(blob)" :options="{ viewMode: 1, dragMode: 'crop', @@ -49,7 +49,7 @@
- +
@@ -60,7 +60,10 @@ Upload
-
+
-
-
- ... and those without your image see this (if you let them see your - activity): +
+
+ People without your image see this: +
+ (if you've let them see your activity)
Import - +
- +
{ + (this.$refs.photoDialog as PhotoDialog).open((imgUrl) => { this.imageUrl = imgUrl; }); }