use view mode service per screen
This commit is contained in:
parent
aecdbcbe7b
commit
b790bf3c67
@ -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 {
|
||||
|
||||
@ -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 {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user