mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
55990: Item move - tweaks
This commit is contained in:
@@ -113,7 +113,9 @@
|
||||
"checkbox": "Inherit policies"
|
||||
},
|
||||
"move": "Move",
|
||||
"cancel": "Cancel"
|
||||
"cancel": "Cancel",
|
||||
"success": "The item has been moved succesfully",
|
||||
"error": "An error occured when attempting to move the item"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>{{'item.edit.move.head' | translate: { id: (itemRD$ | async)?.payload?.id} }}</h2>
|
||||
<h2>{{'item.edit.move.head' | translate: { id: (itemRD$ | async)?.payload?.handle} }}</h2>
|
||||
<p>{{'item.edit.move.description' | translate}}</p>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<button (click)="moveCollection()" class="btn btn-outline-secondary">{{'item.edit.move.move' | translate}}
|
||||
</button>
|
||||
<button [routerLink]="['/items/', (itemRD$ | async)?.payload?.id]" class="btn btn-outline-secondary">
|
||||
<button [routerLink]="['/items/', (itemRD$ | async)?.payload?.id, 'edit']" class="btn btn-outline-secondary">
|
||||
{{'item.edit.move.cancel' | translate}}
|
||||
</button>
|
||||
</div>
|
||||
|
@@ -104,9 +104,9 @@ export class ItemMoveComponent implements OnInit {
|
||||
(response: RestResponse) => {
|
||||
this.router.navigate([getItemEditPath(this.itemId)]);
|
||||
if (response.isSuccessful) {
|
||||
this.notificationsService.success(this.translateService.get('item.move.success'));
|
||||
this.notificationsService.success(this.translateService.get('item.edit.move.success'));
|
||||
} else {
|
||||
this.notificationsService.error(this.translateService.get('item.move.error'));
|
||||
this.notificationsService.error(this.translateService.get('item.edit.move.error'));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user