mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user