fixed click header in file, fixed jump to annotation

This commit is contained in:
Timo 2020-12-02 14:04:15 +02:00
parent 4bcfcedbf3
commit f2bff32b0a
4 changed files with 3 additions and 3 deletions

View File

@ -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({

View File

@ -25,7 +25,7 @@
@include inset-shadow;
position: absolute;
width: 100%;
height: 50px;
height: 1px;
}
width: calc(100vw - 350px);
}

View File

@ -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) {

View File

@ -13,7 +13,6 @@ export class AppStateGuard implements CanActivate {
await this._userService.loadAllUsersIfNecessary();
if (this._userService.isUser()) {
console.log('jere');
await this._appStateService.loadAllProjectsIfNecessary();
}