Skip to content

Commit 45d17c5

Browse files
author
Hassane Diaby
committed
Bug #15519 : Wrong popup when updating rules on holding units
1 parent 6d6937b commit 45d17c5

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

ui/ui-frontend/projects/archive-search/src/app/archive/archive-search/archive-search.component.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,39 @@ <h5>{{ 'ARCHIVE_SEARCH.TITLE_SEARCH' | translate }}</h5>
576576
</mat-dialog-actions>
577577
</ng-template>
578578

579+
<ng-template #launchSelectionContainsHoldingUnitAlertMessageDialog>
580+
<vitamui-dialog-header [subhead]="'ARCHIVE_SEARCH.RULES_ACTION.ACTION_ALERTE_TITLE' | translate"></vitamui-dialog-header>
581+
<mat-dialog-content>
582+
<div class="row red-text">
583+
<div class="col-1">
584+
<i class="material-icons icon-style">cancel</i>
585+
</div>
586+
<div class="col-11">
587+
{{ 'RULES.ALERTE_MESSAGES.ACTION_ALERTE_TITLE' | translate }}
588+
</div>
589+
</div>
590+
<br />
591+
<div class="row">
592+
<div class="col-1">
593+
<span class="vertical-line"></span>
594+
</div>
595+
<div class="col-11">
596+
<div class="text small bold">
597+
{{ 'ARCHIVE_SEARCH.RULES_ACTION.ACTION_ALERTE_FIRST_MESSAGE' | translate }}
598+
</div>
599+
<div class="text small">
600+
{{ 'RULES.ALERTE_MESSAGES.ACTION_ALERTE_FIRST_MESSAGE' | translate }}
601+
</div>
602+
</div>
603+
</div>
604+
</mat-dialog-content>
605+
<mat-dialog-actions>
606+
<button [matDialogClose]="true" class="btn primary btn-confirm-dialog">
607+
{{ 'RULES.ALERTE_MESSAGES.BACK_TO_SELECTION' | translate }}
608+
</button>
609+
</mat-dialog-actions>
610+
</ng-template>
611+
579612
<ng-template #confirmImportantAllowedBulkOperationsDialog>
580613
<mat-dialog-content>
581614
<div class="text large bold">

ui/ui-frontend/projects/archive-search/src/app/archive/archive-search/archive-search.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ export class ArchiveSearchComponent implements OnInit, OnChanges, OnDestroy, Aft
208208
reclassificationAlerteMessageDialog: TemplateRef<ArchiveSearchComponent>;
209209
@ViewChild('launchComputeInheritedRuleAlerteMessageDialog', { static: true })
210210
launchComputeInheritedRuleAlerteMessageDialog: TemplateRef<ArchiveSearchComponent>;
211+
@ViewChild('launchSelectionContainsHoldingUnitAlertMessageDialog', { static: true })
212+
launchSelectionContainsHoldingUnitAlertMessageDialog: TemplateRef<ArchiveSearchComponent>;
211213
archiveSearchResultFacets: ArchiveSearchResultFacets = new ArchiveSearchResultFacets();
212214
@ViewChild('confirmImportantAllowedBulkOperationsDialog', { static: true })
213215
confirmImportantAllowedBulkOperationsDialog: TemplateRef<ArchiveSearchComponent>;
@@ -1340,7 +1342,7 @@ export class ArchiveSearchComponent implements OnInit, OnChanges, OnDestroy, Aft
13401342
this.router,
13411343
this.selectedItemCount,
13421344
this.actionsWithThresholdReachedAlerteMessageDialogSubscription,
1343-
this.actionsWithThresholdReachedAlerteMessageDialog,
1345+
this.launchSelectionContainsHoldingUnitAlertMessageDialog,
13441346
this.confirmSecondActionBigNumberOfResultsActionDialog,
13451347
),
13461348
this.DEFAULT_UPDATE_MGT_RULES_THRESHOLD,

ui/ui-frontend/projects/archive-search/src/assets/i18n/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
}
1919
},
2020
"RULES_ACTION": {
21-
"UPDATE_RULE": "Update rules"
21+
"UPDATE_RULE": "Update rules",
22+
"ACTION_ALERTE_TITLE": "The requested action is not possible for this selection",
23+
"ACTION_ALERTE_FIRST_MESSAGE": "The requested action is not possible for this selection"
2224
},
2325
"PUA": {
2426
"UPDATE": "Update AUP"

ui/ui-frontend/projects/archive-search/src/assets/i18n/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
}
1919
},
2020
"RULES_ACTION": {
21-
"UPDATE_RULE": "Mettre à jour des règles"
21+
"UPDATE_RULE": "Mettre à jour des règles",
22+
"ACTION_ALERTE_TITLE": "L'action demandée n'est pas possible pour cette sélection",
23+
"ACTION_ALERTE_FIRST_MESSAGE": "L'action demandée n'est pas possible pour cette sélection"
2224
},
2325
"PUA": {
2426
"UPDATE": "Mettre à jour les PUA"

0 commit comments

Comments
 (0)