mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Add find or return
This commit is contained in:
@@ -89,7 +89,7 @@ export class ViewEventPage implements OnInit {
|
||||
})
|
||||
}
|
||||
|
||||
loadEvent(){
|
||||
loadEvent() {
|
||||
this.eventsService.getEvent(this.eventId).subscribe(res => {
|
||||
this.loadedEvent = res;
|
||||
this.today = new Date(res.StartDate);
|
||||
@@ -99,6 +99,8 @@ export class ViewEventPage implements OnInit {
|
||||
this.viewEventDetailDismiss.emit({
|
||||
type: 'close'
|
||||
})
|
||||
|
||||
this.toastService.badRequest('Este evento já não existe na sua agenda')
|
||||
})
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user