mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
Fix multiples API calls and methods
This commit is contained in:
@@ -27,7 +27,7 @@ export class AttachmentsPage implements OnInit {
|
||||
|
||||
loadAttachments(eventid:string)
|
||||
{
|
||||
this.attachamentsService.getEventAttachments(eventid).subscribe(attachments => {
|
||||
this.attachamentsService.getAttachmentsById(eventid).subscribe(attachments => {
|
||||
this.loadedEventAttachments = attachments;
|
||||
this.pageId = eventid;
|
||||
});
|
||||
|
||||
@@ -177,6 +177,10 @@ export class EventDetailModalPage implements OnInit {
|
||||
/* this.attachamentsService.getEventAttachments(this.pageId).subscribe(attachments => {
|
||||
this.loadedEventAttachments = attachments;
|
||||
}); */
|
||||
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
|
||||
console.log(res);
|
||||
|
||||
});
|
||||
}
|
||||
async viewDocument(documenturl:string)
|
||||
{
|
||||
|
||||
@@ -186,10 +186,12 @@ export class EventDetailPage implements OnInit {
|
||||
|
||||
loadAttachments()
|
||||
{
|
||||
console.log(this.pageId);
|
||||
/* console.log(this.pageId); */
|
||||
|
||||
this.attachamentsService.getEventAttachments(this.pageId).subscribe(attachments => {
|
||||
this.loadedEventAttachments = attachments;
|
||||
this.attachamentsService.getAttachmentsById(this.pageId).subscribe(res => {
|
||||
this.loadedEventAttachments = res;
|
||||
console.log(res);
|
||||
|
||||
});
|
||||
}
|
||||
async viewDocument(documenturl:string)
|
||||
|
||||
Reference in New Issue
Block a user