Connect Nostr, integrate place photos #45

Merged
raucao merged 56 commits from feature/nostr_place_reviews into master 2026-04-22 09:32:00 +00:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 9828ad2714 - Show all commits

View File

@@ -551,7 +551,10 @@ export default class PlaceDetails extends Component {
{{#if this.isPhotoUploadModalOpen}}
<Modal @onClose={{this.closePhotoUploadModal}}>
<PlacePhotoUpload @place={{this.saveablePlace}} />
<PlacePhotoUpload
@place={{this.saveablePlace}}
@onClose={{this.closePhotoUploadModal}}
/>
</Modal>
{{/if}}

View File

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