Skip to content

Commit 81e3b36

Browse files
authored
Merge pull request DSpace#2423 from atmire/fix-inherit-policies-at-item-move
Fix inherit policies at item move (Angular)
2 parents 3058a4b + 1f68fd6 commit 81e3b36

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/app/item-page/edit-item-page/item-move/item-move.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ <h2>{{'item.edit.move.head' | translate: {id: (itemRD$ | async)?.payload?.handle
2121
<div class="col-12">
2222
<p>
2323
<label for="inheritPoliciesCheckbox">
24-
<input type="checkbox" name="tc" [(ngModel)]="inheritPolicies" id="inheritPoliciesCheckbox">
24+
<ng-template #tooltipContent>
25+
{{ 'item.edit.move.inheritpolicies.tooltip' | translate }}
26+
</ng-template>
27+
<input type="checkbox" name="tc" [(ngModel)]="inheritPolicies" id="inheritPoliciesCheckbox" [ngbTooltip]="tooltipContent"
28+
>
2529
{{'item.edit.move.inheritpolicies.checkbox' |translate}}
2630
</label>
2731
</p>

src/assets/i18n/en.json5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,8 @@
21662166

21672167
"item.edit.move.inheritpolicies.description": "Inherit the default policies of the destination collection",
21682168

2169+
"item.edit.move.inheritpolicies.tooltip": "Warning: When enabled, the read access policy for the item and any files associated with the item will be replaced by the default read access policy of the collection. This cannot be undone.",
2170+
21692171
"item.edit.move.move": "Move",
21702172

21712173
"item.edit.move.processing": "Moving...",

0 commit comments

Comments
 (0)