This commit is contained in:
Eudes Inácio
2021-10-09 16:38:35 +01:00
3 changed files with 10 additions and 2 deletions
@@ -23,7 +23,7 @@
</div>
<div *ngIf="!trustedUrl" class=" height-100 width-100 d-flex align-center justify-center">
<img src="/assets/images/Blocks-loader.gif" />
<img style="width: 100px;" src="/assets/images/Blocks-loader.gif" />
</div>
</ion-content>
@@ -37,13 +37,20 @@ export class ViewDocumentPage implements OnInit {
this.Document = this.navParams.get('Document')
this.task = this.navParams.get('task')
if(!this.file.title) {
this.file.title = 'Sem Título'
}
}
ngOnInit() {
this.processes.GetViewer(this.docId, this.applicationId).subscribe(res=>{
this.processes.GetViewer(this.docId, this.applicationId).subscribe(res=> {
const link: string = res
this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link);
}, ()=>{
this.close()
})
}
@@ -6,5 +6,6 @@
<button (click)="openExpedientActionsModal('0')" class="btn-cancel" shape="round" >Solicitar Parecer</button>
<button *ngIf="!p.userRole(['PR'])" (click)="openExpedientActionsModal('2')" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
<button (click)="openBookMeetingModal()" class="btn-cancel" shape="round" >Marcar Reunião</button>
<button class="btn-cancel" shape="round" (click)="close()">Cancelar</button>
</div>
</ion-content>