Edit event from home page

This commit is contained in:
Peter Maquiran
2021-04-06 11:28:46 +01:00
parent 016c006edc
commit 38283f2855
9 changed files with 282 additions and 220 deletions
@@ -15,6 +15,7 @@ import { EventEditPage } from '../../events/edit-event/edit-event.component';
templateUrl: './view-event.page.html',
styleUrls: ['./view-event.page.scss'],
})
export class ViewEventPage implements OnInit {
loadedEvent: Event;
@@ -66,6 +67,7 @@ export class ViewEventPage implements OnInit {
};
}
close(){
console.log(this.isEventEdited);
this.modalController.dismiss(this.isEventEdited);
@@ -82,6 +84,7 @@ export class ViewEventPage implements OnInit {
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
});
}
deleteEvent(){
this.eventsService.deleteEvent(this.loadedEvent.EventId, 0).subscribe(async () =>
{
@@ -120,7 +123,7 @@ export class ViewEventPage implements OnInit {
},
cssClass: classs,
});
}
async editEvent() {
@@ -154,7 +157,6 @@ export class ViewEventPage implements OnInit {
});
}
viewDocument(){
const url: string = this.loadedAttachments.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
const browser = this.iab.create(url,"_blank");