mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Events em Expediente - Correcções 1
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@
|
||||
<ion-item-sliding>
|
||||
<ion-item lines="none"
|
||||
*ngFor="let event of eventsList"
|
||||
[routerLink]="['/home/events', event.EventId, 'gabinete-digital/expediente/' + serialnumber]">
|
||||
[routerLink]="['/home/gabinete-digital/expediente/events/', event.EventId, 'gabinete-digital/expediente/' + serialnumber]">
|
||||
<div class="div-item-{{event.CalendarName}}">
|
||||
<div class="div-up">
|
||||
<div class="div-icon">
|
||||
|
||||
+12
-10
@@ -51,18 +51,20 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
|
||||
async LoadRelatedEvents(serial:string)
|
||||
{
|
||||
this.eventsList = null;
|
||||
this.attachments.getAttachments(2, serial).subscribe(result => {
|
||||
result.forEach(att =>{
|
||||
if (this.eventsList == null)
|
||||
{
|
||||
this.eventsList = new Array();
|
||||
}
|
||||
this.events.getEvent(att.ParentId).subscribe(event => {
|
||||
this.eventsList.push(event);
|
||||
if (this.eventsList == null)
|
||||
{
|
||||
this.attachments.getAttachments(2, serial).subscribe(result => {
|
||||
result.forEach(att =>{
|
||||
if (this.eventsList == null)
|
||||
{
|
||||
this.eventsList = new Array();
|
||||
}
|
||||
this.events.getEvent(att.ParentId).subscribe(event => {
|
||||
this.eventsList.push(event);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
viewDocument()
|
||||
|
||||
Reference in New Issue
Block a user