From ee12a6f9d55ba76ccb91c05b3ae988652b0229a1 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Mon, 20 Mar 2023 16:53:41 +0200 Subject: [PATCH] RED-6154: update ids --- .../dossier-template-actions.component.html | 8 ++-- .../file-actions/file-actions.component.ts | 37 +++++++++---------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html index 3e96c6552..4b8099c03 100644 --- a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html +++ b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html @@ -1,8 +1,8 @@ -
+
this._openDeleteFileDialog(), tooltip: _('dossier-overview.delete.action'), @@ -131,7 +130,7 @@ export class FileActionsComponent implements OnChanges { show: this.showDelete, }, { - id: 'assign-btn-' + fileId, + id: 'assign-btn', type: ActionTypes.circleBtn, action: () => this._assign(), tooltip: this.assignTooltip, @@ -139,7 +138,7 @@ export class FileActionsComponent implements OnChanges { show: this.showAssign, }, { - id: 'assign-to-me-btn-' + fileId, + id: 'assign-to-me-btn', type: ActionTypes.circleBtn, action: () => this._assignToMe(), tooltip: _('dossier-overview.assign-me'), @@ -147,7 +146,7 @@ export class FileActionsComponent implements OnChanges { show: this.showAssignToSelf, }, { - id: 'open-import-redactions-dialog-btn-' + fileId, + id: 'open-import-redactions-dialog-btn', type: ActionTypes.circleBtn, action: () => this._openImportRedactionsDialog(), tooltip: _('dossier-overview.import-redactions'), @@ -155,7 +154,7 @@ export class FileActionsComponent implements OnChanges { show: this.showImportRedactions && !this._iqserPermissionsService.has(ROLES.getRss), }, { - id: 'download-file-btn-' + fileId, + id: 'download-file-btn', type: ActionTypes.downloadBtn, files: [this.file], dossier: this.dossier, @@ -164,7 +163,7 @@ export class FileActionsComponent implements OnChanges { disabled: this.file.processingStatus === ProcessingFileStatuses.ERROR, }, { - id: 'toggle-document-info-btn-' + fileId, + id: 'toggle-document-info-btn', type: ActionTypes.circleBtn, action: () => this._documentInfoService.toggle(), tooltip: _('file-preview.document-info'), @@ -173,7 +172,7 @@ export class FileActionsComponent implements OnChanges { show: !!this._documentInfoService, }, { - id: 'toggle-exclude-pages-btn-' + fileId, + id: 'toggle-exclude-pages-btn', type: ActionTypes.circleBtn, action: () => this._excludedPagesService.toggle(), tooltip: _('file-preview.exclude-pages'), @@ -186,7 +185,7 @@ export class FileActionsComponent implements OnChanges { !this._iqserPermissionsService.has(ROLES.getRss), }, { - id: 'set-file-to-new-btn-' + fileId, + id: 'set-file-to-new-btn', type: ActionTypes.circleBtn, action: () => this.#setToNew(), tooltip: _('dossier-overview.back-to-new'), @@ -194,7 +193,7 @@ export class FileActionsComponent implements OnChanges { show: this.showSetToNew, }, { - id: 'set-file-under-approval-btn-' + fileId, + id: 'set-file-under-approval-btn', type: ActionTypes.circleBtn, action: () => this._setFileUnderApproval(), tooltip: _('dossier-overview.under-approval'), @@ -202,7 +201,7 @@ export class FileActionsComponent implements OnChanges { show: this.showUnderApproval, }, { - id: 'set-file-under-review-btn-' + fileId, + id: 'set-file-under-review-btn', type: ActionTypes.circleBtn, action: () => this._setFileUnderReview(), tooltip: _('dossier-overview.under-review'), @@ -210,7 +209,7 @@ export class FileActionsComponent implements OnChanges { show: this.showUnderReview, }, { - id: 'set-file-approved-btn-' + fileId, + id: 'set-file-approved-btn', type: ActionTypes.circleBtn, action: () => this.setFileApproved(), tooltip: this.file.canBeApproved ? _('dossier-overview.approve') : _('dossier-overview.approve-disabled'), @@ -219,7 +218,7 @@ export class FileActionsComponent implements OnChanges { show: this.showApprove, }, { - id: 'toggle-automatic-analysis-btn-' + fileId, + id: 'toggle-automatic-analysis-btn', type: ActionTypes.circleBtn, action: () => this._toggleAutomaticAnalysis(), tooltip: _('dossier-overview.stop-auto-analysis'), @@ -227,7 +226,7 @@ export class FileActionsComponent implements OnChanges { show: this.canDisableAutoAnalysis, }, { - id: 'reanalyse-file-preview-btn-' + fileId, + id: 'reanalyse-file-preview-btn', type: ActionTypes.circleBtn, action: () => this._reanalyseFile(), tooltip: _('file-preview.reanalyse-notification'), @@ -237,7 +236,7 @@ export class FileActionsComponent implements OnChanges { disabled: this.file.isProcessing, }, { - id: 'toggle-automatic-analysis-btn-' + fileId, + id: 'toggle-automatic-analysis-btn', type: ActionTypes.circleBtn, action: () => this._toggleAutomaticAnalysis(), tooltip: _('dossier-overview.start-auto-analysis'), @@ -246,7 +245,7 @@ export class FileActionsComponent implements OnChanges { show: this.canEnableAutoAnalysis, }, { - id: 'set-under-approval-btn-' + fileId, + id: 'set-under-approval-btn', type: ActionTypes.circleBtn, action: () => this._setFileUnderApproval(), tooltip: _('dossier-overview.under-approval'), @@ -254,7 +253,7 @@ export class FileActionsComponent implements OnChanges { show: this.showUndoApproval, }, { - id: 'ocr-file-btn-' + fileId, + id: 'ocr-file-btn', type: ActionTypes.circleBtn, action: () => this._ocrFile(), tooltip: _('dossier-overview.ocr-file'), @@ -262,7 +261,7 @@ export class FileActionsComponent implements OnChanges { show: this.showOCR, }, { - id: 'reanalyse-file-btn-' + fileId, + id: 'reanalyse-file-btn', type: ActionTypes.circleBtn, action: () => this._reanalyseFile(), tooltip: _('dossier-overview.reanalyse.action'), @@ -270,7 +269,7 @@ export class FileActionsComponent implements OnChanges { show: this.showReanalyseDossierOverview, }, { - id: 'toggle-analysis-btn-' + fileId, + id: 'toggle-analysis-btn', type: ActionTypes.toggle, action: () => this._toggleAnalysis(), disabled: !this.canToggleAnalysis,