RED-8186 - Delete standard view button help mode icon and link
This commit is contained in:
parent
33a724e6f6
commit
61e6123749
@ -1,6 +1,6 @@
|
||||
<button
|
||||
(click)="switchView(viewModes.STANDARD)"
|
||||
[attr.help-mode-key]="'views'"
|
||||
[attr.help-mode-key]="!isDocumine ? 'views' : ''"
|
||||
[class.active]="viewModeService.isStandard()"
|
||||
[matTooltipPosition]="'above'"
|
||||
[matTooltip]="'file-preview.standard-tooltip' | translate"
|
||||
|
||||
@ -4,6 +4,7 @@ import { Roles } from '@users/roles';
|
||||
import { FileDataService } from '../../services/file-data.service';
|
||||
import { FilePreviewStateService } from '../../services/file-preview-state.service';
|
||||
import { ViewModeService } from '../../services/view-mode.service';
|
||||
import { getConfig } from '@iqser/common-ui';
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-view-switch',
|
||||
@ -11,19 +12,20 @@ import { ViewModeService } from '../../services/view-mode.service';
|
||||
styleUrls: ['./view-switch.component.scss'],
|
||||
})
|
||||
export class ViewSwitchComponent {
|
||||
readonly roles = Roles;
|
||||
readonly viewModes = ViewModes;
|
||||
readonly canSwitchToDeltaView = computed(() => {
|
||||
protected readonly isDocumine = getConfig().IS_DOCUMINE;
|
||||
protected readonly roles = Roles;
|
||||
protected readonly viewModes = ViewModes;
|
||||
protected readonly canSwitchToDeltaView = computed(() => {
|
||||
const annotations = this._fileDataService.annotations();
|
||||
const file = this._state.file();
|
||||
const hasChangeLog = annotations.some(a => a.isChangeLogEntry);
|
||||
return hasChangeLog && !file.isApproved;
|
||||
});
|
||||
readonly canSwitchToRedactedView = computed(() => {
|
||||
protected readonly canSwitchToRedactedView = computed(() => {
|
||||
const file = this._state.file();
|
||||
return !file.analysisRequired && !file.excluded;
|
||||
});
|
||||
readonly canSwitchToEarmarksView = computed(() => {
|
||||
protected readonly canSwitchToEarmarksView = computed(() => {
|
||||
const file = this._state.file();
|
||||
return file.hasHighlights && !file.analysisRequired && !file.excluded;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user