From b790bf3c673e2a192c19ea531af6de7f51a4ab85 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Thu, 25 Nov 2021 13:18:37 +0200 Subject: [PATCH] use view mode service per screen --- .../file-preview-screen/file-preview-screen.component.ts | 2 +- .../dossier/screens/file-preview-screen/file-preview.module.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts index a88489f0b..2177ccd43 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts @@ -60,7 +60,7 @@ const ALL_HOTKEY_ARRAY = ['Escape', 'F', 'f']; @Component({ templateUrl: './file-preview-screen.component.html', styleUrls: ['./file-preview-screen.component.scss'], - providers: [FilterService, ExcludedPagesService], + providers: [FilterService, ExcludedPagesService, ViewModeService], changeDetection: ChangeDetectionStrategy.OnPush, }) export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnInit, OnDestroy, OnAttach, OnDetach { diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview.module.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview.module.ts index f20db45ac..1943e4aae 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview.module.ts @@ -18,7 +18,6 @@ import { DocumentInfoComponent } from './components/document-info/document-info. import { TypeAnnotationIconComponent } from './components/type-annotation-icon/type-annotation-icon.component'; import { OverlayModule } from '@angular/cdk/overlay'; import { ViewSwitchComponent } from './components/view-switch/view-switch.component'; -import { ViewModeService } from './services/view-mode.service'; import { UserManagementComponent } from './components/user-management/user-management.component'; const routes: Routes = [ @@ -55,6 +54,5 @@ const routes: Routes = [ TranslateModule, OverlayModule, ], - providers: [ViewModeService], }) export class FilePreviewModule {}