55990: Item move - tweaks

This commit is contained in:
Yana De Pauw
2018-11-30 11:18:57 +01:00
parent b36a2ea66b
commit 8498a16979
3 changed files with 7 additions and 5 deletions

View File

@@ -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"
}
}
},

View File

@@ -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>

View File

@@ -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'));
}
}
);