mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
ITOTEAM-523 A app não redireciona as notificações
This commit is contained in:
@@ -92,6 +92,55 @@ export class ViewDocumentPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// @XTracerAsync({name:'view-document/LoadViewer', bugPrint: true, daley: 4000})
|
||||
// async LoadViewer(tracing?: TracingType) {
|
||||
// this.processes.GetViewer(this.docId, this.applicationId).subscribe(async(res)=> {
|
||||
|
||||
// const link: string = res.replace('//pdfjs/web/', '/pdfjs/web/')
|
||||
// this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link);
|
||||
|
||||
// // const iframe = document.getElementById("iframe")
|
||||
// // const handleLoad = () => {
|
||||
// // this.loader = false
|
||||
// // };
|
||||
|
||||
// // iframe.addEventListener('load', handleLoad, true)
|
||||
|
||||
// if(res == "") {
|
||||
// const alert = await this.alertController.create({
|
||||
// cssClass: 'my-custom-class',
|
||||
// //header: 'Apagar evento!',
|
||||
// message: 'Sem imagem',
|
||||
// buttons: [
|
||||
// {
|
||||
// text: 'Sim',
|
||||
// handler: () => {
|
||||
// this.close();
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// });
|
||||
// }
|
||||
|
||||
// tracing.setAttribute('outcome', 'success')
|
||||
|
||||
// }, (error)=>{
|
||||
// if(isHttpError(error)) {
|
||||
// tracing?.setAttribute('status.code', error.status.toString())
|
||||
// if (error.status == 400) {
|
||||
// tracing?.bugFlag()
|
||||
// tracing?.setAttribute('outcome', 'failed')
|
||||
// }
|
||||
// }
|
||||
// tracing.setAttribute('outcome', 'failed')
|
||||
// this.close();
|
||||
// });
|
||||
|
||||
// }
|
||||
|
||||
|
||||
|
||||
close() {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user