From ba72c4558b0e7276747043bc4be4b8729c29271e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Tue, 13 Oct 2020 02:02:41 +0300 Subject: [PATCH] Fixed typo in file name --- .../file-preview-screen.component.ts | 2 +- .../file/pdf-viewer/pdf-viewer.component.ts | 24 +++++++++---------- ...sync.service.ts => viewer-sync.service.ts} | 0 3 files changed, 13 insertions(+), 13 deletions(-) rename apps/red-ui/src/app/screens/file/service/{viwer-sync.service.ts => viewer-sync.service.ts} (100%) diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index 250f4bca5..42797a7bc 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -6,7 +6,7 @@ import { NotificationService } from '../../../notification/notification.service' import { MatDialog } from '@angular/material/dialog'; import { AppStateService } from '../../../state/app-state.service'; import { FileDetailsDialogComponent } from './file-details-dialog/file-details-dialog.component'; -import { ViewerSyncService } from '../service/viwer-sync.service'; +import { ViewerSyncService } from '../service/viewer-sync.service'; import { Annotations } from '@pdftron/webviewer'; import { PdfViewerComponent } from '../pdf-viewer/pdf-viewer.component'; import { AnnotationUtils } from '../../../utils/annotation-utils'; diff --git a/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts b/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts index 3f3d87aed..f481245e8 100644 --- a/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts +++ b/apps/red-ui/src/app/screens/file/pdf-viewer/pdf-viewer.component.ts @@ -9,13 +9,13 @@ import { Output, ViewChild } from '@angular/core'; -import {AppConfigKey, AppConfigService} from "../../../app-config/app-config.service"; -import {FileStatus, FileUploadControllerService} from "@redaction/red-ui-http"; -import {Observable, of} from "rxjs"; -import {tap} from "rxjs/operators"; -import WebViewer, {Annotations, WebViewerInstance} from "@pdftron/webviewer"; -import {TranslateService} from "@ngx-translate/core"; -import {ViewerSyncService} from "../service/viwer-sync.service"; +import { AppConfigKey, AppConfigService } from '../../../app-config/app-config.service'; +import { FileStatus, FileUploadControllerService } from '@redaction/red-ui-http'; +import { Observable, of } from 'rxjs'; +import { tap } from 'rxjs/operators'; +import WebViewer, { Annotations, WebViewerInstance } from '@pdftron/webviewer'; +import { TranslateService } from '@ngx-translate/core'; +import { ViewerSyncService } from '../service/viewer-sync.service'; export enum FileType { ORIGINAL = 'ORIGINAL', @@ -37,7 +37,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy { @Output() annotationsAdded = new EventEmitter(); @Output() annotationSelected = new EventEmitter(); - @ViewChild('viewer', {static: true}) viewer: ElementRef; + @ViewChild('viewer', { static: true }) viewer: ElementRef; wvInstance: WebViewerInstance; _fileData: Blob; @@ -56,7 +56,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy { wvDocumentLoadedHandler(): void { this.wvInstance.setFitMode('FitWidth'); const displayMode = this.wvInstance.docViewer.getDisplayModeManager().getDisplayMode(); - displayMode.mode = "Continuous"; + displayMode.mode = 'Continuous'; this.wvInstance.docViewer.getDisplayModeManager().setDisplayMode(displayMode); this.fileReady.emit(); } @@ -73,7 +73,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy { WebViewer({ licenseKey: license, isReadOnly: true, - path: '/assets/wv-resources', + path: '/assets/wv-resources' }, this.viewer.nativeElement).then(instance => { this.wvInstance = instance; this._viewerSyncService.registerViewer(this.fileType, this.wvInstance); @@ -95,7 +95,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy { })); instance.docViewer.on('documentLoaded', this.wvDocumentLoadedHandler); - instance.loadDocument(pdfBlob, {filename: this.fileStatus ? this.fileStatus.filename : 'file.pdf'}); + instance.loadDocument(pdfBlob, { filename: this.fileStatus ? this.fileStatus.filename : 'file.pdf' }); }); } @@ -134,7 +134,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnDestroy { 'notesPanel', 'thumbnailControl', 'documentControl', - 'ribbons', + 'ribbons' ]); } diff --git a/apps/red-ui/src/app/screens/file/service/viwer-sync.service.ts b/apps/red-ui/src/app/screens/file/service/viewer-sync.service.ts similarity index 100% rename from apps/red-ui/src/app/screens/file/service/viwer-sync.service.ts rename to apps/red-ui/src/app/screens/file/service/viewer-sync.service.ts