popup also gets callbacked
This commit is contained in:
parent
5f774dc475
commit
1675d4f7ff
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue