diff --git a/client/imports/app/parties/party-details.component.ts b/client/imports/app/parties/party-details.component.ts index 8d877f652..e70f6806c 100644 --- a/client/imports/app/parties/party-details.component.ts +++ b/client/imports/app/parties/party-details.component.ts @@ -91,6 +91,14 @@ export class PartyDetailsComponent implements OnInit, OnDestroy { }); } + reply(rsvp: string) { + MeteorObservable.call('reply', this.party._id, rsvp).subscribe(() => { + alert('You successfully replied.'); + }, (error) => { + alert(`Failed to reply due to ${error}`); + }); + } + ngOnDestroy() { this.paramsSub.unsubscribe(); this.partySub.unsubscribe();