mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
viewer loader
This commit is contained in:
@@ -7,6 +7,7 @@ import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { EventDetailsDocumentsOptionsPage } from 'src/app/shared/popover/event-details-documents-options/event-details-documents-options.page';
|
||||
import { DocumentSetUpMeetingPage } from '../document-set-up-meeting/document-set-up-meeting.page';
|
||||
import { AlertController, ModalController } from '@ionic/angular';
|
||||
|
||||
@Component({
|
||||
selector: 'app-view-document',
|
||||
templateUrl: './view-document.page.html',
|
||||
@@ -20,6 +21,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
docId: any
|
||||
task: ExpedientTaskModalPageNavParamsTask;
|
||||
Document: any
|
||||
loader = true
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -49,6 +51,13 @@ export class ViewDocumentPage implements OnInit {
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user