From 9828ad2714e905ad60360980efb938640ecb1b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 21 Apr 2026 14:16:05 +0400 Subject: [PATCH] Close photo upload window, show toast when published --- app/components/place-details.gjs | 5 ++++- app/components/place-photo-upload.gjs | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/components/place-details.gjs b/app/components/place-details.gjs index 309a516..4c3acb6 100644 --- a/app/components/place-details.gjs +++ b/app/components/place-details.gjs @@ -551,7 +551,10 @@ export default class PlaceDetails extends Component { {{#if this.isPhotoUploadModalOpen}} - + {{/if}} diff --git a/app/components/place-photo-upload.gjs b/app/components/place-photo-upload.gjs index 9b2801f..46410cc 100644 --- a/app/components/place-photo-upload.gjs +++ b/app/components/place-photo-upload.gjs @@ -183,11 +183,16 @@ export default class PlacePhotoUpload extends Component { const event = await factory.sign(template); await this.nostrRelay.publish(event); - this.status = 'Published successfully!'; + this.toast.show('Photos published successfully'); + this.status = ''; // Clear out the files so user can upload more or be done this.files = []; this.uploadedPhotos = []; + + if (this.args.onClose) { + this.args.onClose(); + } } catch (e) { this.error = 'Failed to publish: ' + e.message; this.status = '';