fixed click header in file, fixed jump to annotation
This commit is contained in:
parent
4bcfcedbf3
commit
f2bff32b0a
@ -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({
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
@include inset-shadow;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
height: 1px;
|
||||
}
|
||||
width: calc(100vw - 350px);
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -13,7 +13,6 @@ export class AppStateGuard implements CanActivate {
|
||||
await this._userService.loadAllUsersIfNecessary();
|
||||
|
||||
if (this._userService.isUser()) {
|
||||
console.log('jere');
|
||||
await this._appStateService.loadAllProjectsIfNecessary();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user