From f2bff32b0a4b5e3bbc700049fdbc98b747a1694a Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 2 Dec 2020 14:04:15 +0200 Subject: [PATCH] fixed click header in file, fixed jump to annotation --- apps/red-ui/src/app/common/service/permissions.service.ts | 2 +- .../file/file-preview-screen/file-preview-screen.component.scss | 2 +- .../src/app/screens/file/pdf-viewer/pdf-viewer.component.ts | 1 + apps/red-ui/src/app/state/app-state.guard.ts | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/red-ui/src/app/common/service/permissions.service.ts b/apps/red-ui/src/app/common/service/permissions.service.ts index a97de4365..c63d36cc2 100644 --- a/apps/red-ui/src/app/common/service/permissions.service.ts +++ b/apps/red-ui/src/app/common/service/permissions.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import { AppStateService } from '../../state/app-state.service'; import { UserService, UserWrapper } from '../../user/user.service'; import { FileStatusWrapper } from '../../screens/file/model/file-status.wrapper'; -import { Project, User } from '@redaction/red-ui-http'; +import { User } from '@redaction/red-ui-http'; import { ProjectWrapper } from '../../state/model/project.wrapper'; @Injectable({ diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.scss b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.scss index eb6abc394..a2351e021 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.scss +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.scss @@ -25,7 +25,7 @@ @include inset-shadow; position: absolute; width: 100%; - height: 50px; + height: 1px; } width: calc(100vw - 350px); } 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 0b411b6b8..82374e513 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 @@ -290,6 +290,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges { const annotationFromViewer = this.instance.annotManager.getAnnotationById(annotation.id); this.instance.annotManager.selectAnnotation(annotationFromViewer); this.navigateToPage(annotation.pageNumber); + this.instance.annotManager.jumpToAnnotation(annotationFromViewer); } public navigateToPage(pageNumber: number) { diff --git a/apps/red-ui/src/app/state/app-state.guard.ts b/apps/red-ui/src/app/state/app-state.guard.ts index fed9a2389..c9238cbed 100644 --- a/apps/red-ui/src/app/state/app-state.guard.ts +++ b/apps/red-ui/src/app/state/app-state.guard.ts @@ -13,7 +13,6 @@ export class AppStateGuard implements CanActivate { await this._userService.loadAllUsersIfNecessary(); if (this._userService.isUser()) { - console.log('jere'); await this._appStateService.loadAllProjectsIfNecessary(); }