popup also gets callbacked

This commit is contained in:
counterweight 2025-03-30 19:14:34 +02:00
parent 5f774dc475
commit 1675d4f7ff
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -136,6 +136,7 @@ class CreateOfferModal {
onClickCallback: async () => { onClickCallback: async () => {
await this.createOffer(); await this.createOffer();
await this.onCreationCallback(); await this.onCreationCallback();
await this.toggleOfferCreatedAlert();
}, },
}); });
this.publishOfferButton.render(); this.publishOfferButton.render();
@ -248,8 +249,6 @@ class CreateOfferModal {
body: JSON.stringify({ offerDetails }), body: JSON.stringify({ offerDetails }),
}); });
toggleOfferCreatedAlert();
this.toggle(); this.toggle();
} }
} }
@ -260,6 +259,7 @@ function offersPage() {
onCreationCallback: async () => { onCreationCallback: async () => {
await myOffers.getOffersFromApi(); await myOffers.getOffersFromApi();
await myOffers.render(); await myOffers.render();
await toggleOfferCreatedAlert();
}, },
}); });
createOfferModal.render(); createOfferModal.render();