From e4155e1a203b69a4fd0dc629d5ecbd187f15ba33 Mon Sep 17 00:00:00 2001 From: Matt Raymer Date: Wed, 14 May 2025 05:39:03 -0400 Subject: [PATCH] feat(ui): disable all photo upload actions for unregistered users - Updated ImageMethodDialog.vue to accept an isRegistered prop and show "Register to Upload a Photo" message instead of upload UI when not registered. - Updated AccountViewView.vue to pass isRegistered to ImageMethodDialog and replace all profile photo add/upload buttons with the same message for unregistered users. - Ensures consistent UX and prevents unregistered users from accessing any photo upload features. --- BUILDING.md | 2 +- src/components/ImageMethodDialog.vue | 67 ++++++++++++++++------------ src/components/PhotoDialog.vue | 4 ++ src/views/AccountViewView.vue | 27 ++++++----- 4 files changed, 60 insertions(+), 40 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index c2570796..ad7b1d41 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -54,7 +54,7 @@ Install dependencies: 1. Run the production build: ```bash - npm run build + npm run build:web ``` The built files will be in the `dist` directory. diff --git a/src/components/ImageMethodDialog.vue b/src/components/ImageMethodDialog.vue index 8a3faaa2..6585b2b5 100644 --- a/src/components/ImageMethodDialog.vue +++ b/src/components/ImageMethodDialog.vue @@ -18,36 +18,41 @@
-
- -
-
- -
-
- - ... or paste a URL: - - - + +
@@ -67,6 +72,12 @@ const inputImageFileNameRef = ref(); @Component({ components: { PhotoDialog }, + props: { + isRegistered: { + type: Boolean, + default: true, + }, + }, }) export default class ImageMethodDialog extends Vue { $notify!: (notification: NotificationIface, timeout?: number) => void; diff --git a/src/components/PhotoDialog.vue b/src/components/PhotoDialog.vue index 298dc067..65d41e6b 100644 --- a/src/components/PhotoDialog.vue +++ b/src/components/PhotoDialog.vue @@ -83,6 +83,7 @@ PhotoDialog.vue */