This commit is contained in:
tiago.kayaya
2021-04-05 14:56:40 +01:00
parent 01d68edbf3
commit e0c5fe2e57
2 changed files with 4 additions and 4 deletions
@@ -72,7 +72,7 @@
<h5>Documentos Anexados</h5>
<ion-item class="ion-no-margin ion-no-padding">
<ion-label *ngFor="let attach of loadedAttachments"
(click)="viewDocument()">
(click)="viewDocument(attach.SourceId)">
<p class="attach-title-item">{{attach.SourceName}}</p>
<p><span class="span-left">{{attach.Stakeholders}}</span><span class="span-right">{{ attach.CreateDate | date: 'dd-MM-yy' }}</span></p>
</ion-label>
@@ -136,14 +136,14 @@ export class ViewEventPage implements OnInit {
}
viewDocument(){
/* this.processes.GetDocumentUrl(this.task.DocId, this.task.FsId).subscribe(res=>{
viewDocument(sourceId){
this.processes.GetDocumentUrl(sourceId, '8').subscribe(res=>{
console.log(res);
const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
const browser = this.iab.create(url,"_blank");
browser.show();
}); */
});
}
}