RED-4640: remove some strings
This commit is contained in:
parent
ccd8e9980d
commit
c9ac77e195
@ -116,7 +116,7 @@ export const appModuleFactory = (config: AppConfig) => {
|
||||
enabled: false,
|
||||
},
|
||||
PDF: {
|
||||
enabled: false,
|
||||
enabled: true,
|
||||
},
|
||||
FILE: {
|
||||
enabled: false,
|
||||
|
||||
@ -32,7 +32,7 @@ export class AnnotationsListComponent extends HasScrollbarDirective implements O
|
||||
|
||||
@Output() readonly pagesPanelActive = new EventEmitter<boolean>();
|
||||
|
||||
highlightGroups$ = new BehaviorSubject<TextHighlightsGroup[]>([]);
|
||||
readonly highlightGroups$ = new BehaviorSubject<TextHighlightsGroup[]>([]);
|
||||
|
||||
constructor(
|
||||
protected readonly _elementRef: ElementRef,
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<ng-container *ngIf="viewModeService.viewMode$ | async as viewMode">
|
||||
<button
|
||||
(click)="switchView.emit('STANDARD')"
|
||||
[class.active]="viewModeService.isStandard"
|
||||
(click)="switchView.emit(viewModes.STANDARD)"
|
||||
[class.active]="viewMode === viewModes.STANDARD"
|
||||
[iqserHelpMode]="'views'"
|
||||
[matTooltip]="'file-preview.standard-tooltip' | translate"
|
||||
class="red-tab"
|
||||
@ -10,8 +10,8 @@
|
||||
</button>
|
||||
|
||||
<button
|
||||
(click)="switchView.emit('DELTA')"
|
||||
[class.active]="viewModeService.isDelta"
|
||||
(click)="switchView.emit(viewModes.DELTA)"
|
||||
[class.active]="viewMode === viewModes.DELTA"
|
||||
[disabled]="(canSwitchToDeltaView$ | async) === false"
|
||||
[iqserHelpMode]="'views'"
|
||||
[matTooltip]="'file-preview.delta-tooltip' | translate"
|
||||
@ -21,8 +21,8 @@
|
||||
</button>
|
||||
|
||||
<button
|
||||
(click)="switchView.emit('REDACTED')"
|
||||
[class.active]="viewModeService.isRedacted"
|
||||
(click)="switchView.emit(viewModes.REDACTED)"
|
||||
[class.active]="viewMode === viewModes.REDACTED"
|
||||
[disabled]="(canSwitchToRedactedView$ | async) === false"
|
||||
[iqserHelpMode]="'views'"
|
||||
[matTooltip]="'file-preview.redacted-tooltip' | translate"
|
||||
@ -32,8 +32,8 @@
|
||||
</button>
|
||||
|
||||
<button
|
||||
(click)="switchView.emit('TEXT_HIGHLIGHTS')"
|
||||
[class.active]="viewModeService.isTextHighlights"
|
||||
(click)="switchView.emit(viewModes.TEXT_HIGHLIGHTS)"
|
||||
[class.active]="viewMode === viewModes.TEXT_HIGHLIGHTS"
|
||||
[disabled]="(canSwitchToHighlightsView$ | async) === false"
|
||||
[iqserHelpMode]="'views'"
|
||||
[matTooltip]="'file-preview.text-highlights-tooltip' | translate"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { ChangeDetectionStrategy, Component, EventEmitter, Output } from '@angular/core';
|
||||
import { ViewMode } from '@red/domain';
|
||||
import { ViewMode, ViewModes } from '@red/domain';
|
||||
import { ViewModeService } from '../../services/view-mode.service';
|
||||
import { FilePreviewStateService } from '../../services/file-preview-state.service';
|
||||
import { combineLatest, Observable } from 'rxjs';
|
||||
@ -13,6 +13,7 @@ import { FileDataService } from '../../services/file-data.service';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class ViewSwitchComponent {
|
||||
readonly viewModes = ViewModes;
|
||||
@Output() readonly switchView = new EventEmitter<ViewMode>();
|
||||
|
||||
readonly canSwitchToDeltaView$: Observable<boolean>;
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit b42baa37fc69feef008600a057e50a7e36ae45e9
|
||||
Subproject commit 894405be8a269434eb8fbbe0802858837bf6e048
|
||||
Loading…
x
Reference in New Issue
Block a user