mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
catch added to getattachmentsbyid call
This commit is contained in:
@@ -30,7 +30,9 @@ export class AttachmentsPage implements OnInit {
|
||||
this.attachamentsService.getAttachmentsById(eventid).subscribe(attachments => {
|
||||
this.loadedEventAttachments = attachments;
|
||||
this.pageId = eventid;
|
||||
});
|
||||
},((erro) => {
|
||||
console.error('loadAttchament', erro)
|
||||
}));
|
||||
}
|
||||
|
||||
async viewDocument(documenturl:string)
|
||||
|
||||
@@ -189,7 +189,9 @@ export class EditEventPage implements OnInit {
|
||||
this.loadedEventAttachments = res;
|
||||
|
||||
|
||||
});
|
||||
},((erro) => {
|
||||
console.error('loadAttchament', erro)
|
||||
}));
|
||||
}
|
||||
async viewDocument(documenturl:string)
|
||||
{
|
||||
|
||||
@@ -186,10 +186,9 @@ export class EventDetailModalPage implements OnInit {
|
||||
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
|
||||
|
||||
|
||||
},(error) => {
|
||||
|
||||
|
||||
});
|
||||
},((erro) => {
|
||||
console.error('loadAttchament', erro)
|
||||
}));
|
||||
}
|
||||
async viewDocument(documenturl:string)
|
||||
{
|
||||
|
||||
@@ -187,7 +187,9 @@ export class EventDetailPage implements OnInit {
|
||||
this.loadedEventAttachments = res;
|
||||
|
||||
|
||||
});
|
||||
},((erro) => {
|
||||
console.error('loadAttchament', erro)
|
||||
}));
|
||||
}
|
||||
async viewDocument(documenturl:string)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user