RED-6154: update ids
This commit is contained in:
parent
0584b1b4c9
commit
ee12a6f9d5
@ -1,8 +1,8 @@
|
||||
<div *ngIf="currentUser.isAdmin" class="action-buttons">
|
||||
<div *ngIf="currentUser.isAdmin" [id]="'actions-for-' + dossierTemplateId" class="action-buttons">
|
||||
<div [iqserHelpMode]="'edit_clone_delete_dossier_templates'" [overlappingElements]="['USER_MENU']">
|
||||
<iqser-circle-button
|
||||
(action)="openDeleteDossierTemplateDialog()"
|
||||
[buttonId]="'delete-dossier-template-btn-' + dossierTemplateId"
|
||||
[buttonId]="'delete-dossier-template-btn'"
|
||||
[tooltip]="'dossier-templates-listing.action.delete' | translate"
|
||||
[type]="circleButtonTypes.dark"
|
||||
icon="iqser:trash"
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
<iqser-circle-button
|
||||
(action)="openEditCloneDossierTemplateDialog(true)"
|
||||
[buttonId]="'copy-dossier-template-btn-' + dossierTemplateId"
|
||||
[buttonId]="'copy-dossier-template-btn'"
|
||||
[tooltip]="'dossier-templates-listing.action.clone' | translate"
|
||||
[type]="circleButtonTypes.dark"
|
||||
icon="iqser:copy"
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
<iqser-circle-button
|
||||
(action)="openEditCloneDossierTemplateDialog()"
|
||||
[buttonId]="'edit-dossier-template-btn-' + dossierTemplateId"
|
||||
[buttonId]="'edit-dossier-template-btn'"
|
||||
[tooltip]="'dossier-templates-listing.action.edit' | translate"
|
||||
[type]="circleButtonTypes.dark"
|
||||
icon="iqser:edit"
|
||||
|
||||
@ -120,10 +120,9 @@ export class FileActionsComponent implements OnChanges {
|
||||
}
|
||||
|
||||
private get _buttons(): Action[] {
|
||||
const fileId = this.file.fileId;
|
||||
const actions: Action[] = [
|
||||
{
|
||||
id: 'delete-file-btn-' + fileId,
|
||||
id: 'delete-file-btn',
|
||||
type: ActionTypes.circleBtn,
|
||||
action: () => 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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user