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 = '';