RED-4349: Fixed disable redaction toggle tooltip

This commit is contained in:
Adina Țeudan 2022-06-23 15:09:43 +03:00
parent dc01b1affb
commit 9c591c8f45

View File

@ -113,7 +113,7 @@ export class FileActionsComponent implements OnChanges {
}
private get _toggleTooltip(): string {
if (!this.currentUser.isManager) {
if (!this.canToggleAnalysis) {
return _('file-preview.toggle-analysis.only-managers');
}
@ -405,7 +405,6 @@ export class FileActionsComponent implements OnChanges {
this.assignTooltip = this.file.isUnderApproval ? _('dossier-overview.assign-approver') : _('dossier-overview.assign-reviewer');
this.buttonType = this.isFilePreview ? CircleButtonTypes.default : CircleButtonTypes.dark;
this.toggleTooltip = this._toggleTooltip;
this.showSetToNew = this._permissionsService.canSetToNew(this.file, this.dossier) && !this.isDossierOverviewWorkflow;
this.showUndoApproval = this._permissionsService.canUndoApproval(this.file, this.dossier) && !this.isDossierOverviewWorkflow;
@ -415,6 +414,8 @@ export class FileActionsComponent implements OnChanges {
this.canToggleAnalysis = this._permissionsService.canToggleAnalysis(this.file, this.dossier);
this.showToggleAnalysis = this._permissionsService.showToggleAnalysis(this.dossier);
this.toggleTooltip = this._toggleTooltip;
this.showDelete = this._permissionsService.canSoftDeleteFile(this.file, this.dossier);
this.showOCR = this._permissionsService.canOcrFile(this.file, this.dossier);
this.canReanalyse = this._permissionsService.canReanalyseFile(this.file, this.dossier);