Skip to content
Snippets Groups Projects
Commit 8e51cb38 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #15475 TIME 3:30 test + fix path pdf worker

parent f2dcab6c
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,8 @@
"./src/frontend/assets",
{ "glob": "**/*", "input": "node_modules/tinymce/skins", "output": "/tinymce/skins/" },
{ "glob": "**/*", "input": "node_modules/tinymce/themes", "output": "/tinymce/themes/" },
{ "glob": "**/*", "input": "node_modules/tinymce/plugins", "output": "/tinymce/plugins/" }
{ "glob": "**/*", "input": "node_modules/tinymce/plugins", "output": "/tinymce/plugins/" },
{ "glob": "pdf.worker.min.js", "input": "node_modules/pdfjs-dist/build", "output": "/pdfjs/" }
]
},
"configurations": {
......
......@@ -49,7 +49,7 @@ export class HomeComponent implements OnInit, AfterViewInit {
private router: Router,
private featureTourService: FeatureTourService
) {
(<any>window).pdfWorkerSrc = '../node_modules/pdfjs-dist/build/pdf.worker.min.js';
(<any>window).pdfWorkerSrc = 'pdfjs/pdf.worker.min.js';
}
ngOnInit(): void {
......
......@@ -40,7 +40,7 @@ export class PrintSeparatorComponent implements OnInit {
private headerService: HeaderService,
public appService: AppService
) {
(<any>window).pdfWorkerSrc = '../node_modules/pdfjs-dist/build/pdf.worker.min.js';
(<any>window).pdfWorkerSrc = 'pdfjs/pdf.worker.min.js';
}
ngOnInit(): void {
......
......@@ -105,7 +105,7 @@ export class SignatureBookComponent implements OnInit, OnDestroy {
public actionService: ActionsService,
public headerService: HeaderService,
) {
(<any>window).pdfWorkerSrc = '../node_modules/pdfjs-dist/build/pdf.worker.min.js';
(<any>window).pdfWorkerSrc = 'pdfjs/pdf.worker.min.js';
// Event after process action
this.subscription = this.actionService.catchAction().subscribe(message => {
......
import {Component, OnInit, Input, ViewChild, EventEmitter, Output, OnDestroy} from '@angular/core';
import { Component, OnInit, Input, ViewChild, EventEmitter, Output, OnDestroy } from '@angular/core';
import { HttpClient, HttpEventType } from '@angular/common/http';
import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '@service/notification/notification.service';
......@@ -86,8 +86,6 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
*/
@Output() triggerEvent = new EventEmitter<string>();
loading: boolean = true;
noConvertedFound: boolean = false;
......@@ -155,7 +153,7 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
private authService: AuthService,
private localStorage: LocalStorageService
) {
(<any>window).pdfWorkerSrc = '../node_modules/pdfjs-dist/build/pdf.worker.min.js';
(<any>window).pdfWorkerSrc = 'pdfjs/pdf.worker.min.js';
}
ngOnInit() {
......@@ -775,7 +773,7 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
objectType: 'attachmentCreation',
objectId: template.id,
cookie: document.cookie,
authToken : this.authService.getToken(),
authToken: this.authService.getToken(),
data: this.resourceDatas,
};
this.editInProgress = true;
......@@ -825,7 +823,7 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
objectType: 'attachmentModification',
objectId: this.resId,
cookie: document.cookie,
authToken : this.authService.getToken(),
authToken: this.authService.getToken(),
data: this.resourceDatas,
};
this.editInProgress = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment