Skip to content
Snippets Groups Projects
Commit 8498a169 authored by Yana De Pauw's avatar Yana De Pauw
Browse files

55990: Item move - tweaks

parent b36a2ea6
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,9 @@ ...@@ -113,7 +113,9 @@
"checkbox": "Inherit policies" "checkbox": "Inherit policies"
}, },
"move": "Move", "move": "Move",
"cancel": "Cancel" "cancel": "Cancel",
"success": "The item has been moved succesfully",
"error": "An error occured when attempting to move the item"
} }
} }
}, },
......
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-12"> <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> <p>{{'item.edit.move.description' | translate}}</p>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<button (click)="moveCollection()" class="btn btn-outline-secondary">{{'item.edit.move.move' | translate}} <button (click)="moveCollection()" class="btn btn-outline-secondary">{{'item.edit.move.move' | translate}}
</button> </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}} {{'item.edit.move.cancel' | translate}}
</button> </button>
</div> </div>
......
...@@ -104,9 +104,9 @@ export class ItemMoveComponent implements OnInit { ...@@ -104,9 +104,9 @@ export class ItemMoveComponent implements OnInit {
(response: RestResponse) => { (response: RestResponse) => {
this.router.navigate([getItemEditPath(this.itemId)]); this.router.navigate([getItemEditPath(this.itemId)]);
if (response.isSuccessful) { if (response.isSuccessful) {
this.notificationsService.success(this.translateService.get('item.move.success')); this.notificationsService.success(this.translateService.get('item.edit.move.success'));
} else { } else {
this.notificationsService.error(this.translateService.get('item.move.error')); this.notificationsService.error(this.translateService.get('item.edit.move.error'));
} }
} }
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment