Improve add attachment

This commit is contained in:
Peter Maquiran
2021-04-20 15:05:40 +01:00
parent e794c12872
commit ecb87959a0
9 changed files with 86 additions and 24 deletions
@@ -70,7 +70,7 @@ export class ViewEventPage implements OnInit {
}
close(){
console.log(this.isEventEdited);
/* console.log(this.isEventEdited); */
this.modalController.dismiss(this.isEventEdited);
}
@@ -78,10 +78,10 @@ export class ViewEventPage implements OnInit {
this.eventsService.getEvent(this.eventId).subscribe(res => {
this.loadedEvent = res;
console.log(res);
/* console.log(res); */
this.today = new Date(res.StartDate);
console.log(new Date(this.today));
/* console.log(new Date(this.today)); */
this.customDate = this.days[this.today.getDay()]+ ", " + this.today.getDate() +" de " + ( this.months[this.today.getMonth()]);
});
}
@@ -154,7 +154,7 @@ export class ViewEventPage implements OnInit {
viewDocument(sourceId){
this.processes.GetDocumentUrl(sourceId, '8').subscribe(res=>{
console.log(res);
/* console.log(res); */
const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
const browser = this.iab.create(url,"_blank");
browser.show();