diff --git a/app/javascript/vue/storage_locations/container.vue b/app/javascript/vue/storage_locations/container.vue index 2cd4913e2..d4314000d 100644 --- a/app/javascript/vue/storage_locations/container.vue +++ b/app/javascript/vue/storage_locations/container.vue @@ -34,6 +34,7 @@ :selectedContainer="assignToContainer" :selectedPosition="assignToPosition" :selectedRow="rowIdToMove" + :selectedRowName="rowNameToMove" :cellId="cellIdToUnassign" @close="openAssignModal = false; resetTableSearch(); this.reloadingTable = true" > @@ -115,6 +116,7 @@ export default { assignToPosition: null, assignToContainer: null, rowIdToMove: null, + rowNameToMove: null, cellIdToUnassign: null, assignMode: 'assign', storageLocationUnassignDescription: '' @@ -219,6 +221,7 @@ export default { assignRow() { this.openAssignModal = true; this.rowIdToMove = null; + this.rowNameToMove = null; this.assignToContainer = this.containerId; this.assignToPosition = null; this.cellIdToUnassign = null; @@ -227,6 +230,7 @@ export default { assignRowToPosition(position) { this.openAssignModal = true; this.rowIdToMove = null; + this.rowNameToMove = null; this.assignToContainer = this.containerId; this.assignToPosition = position; this.cellIdToUnassign = null; @@ -235,6 +239,7 @@ export default { moveRow(_event, data) { this.openAssignModal = true; this.rowIdToMove = data[0].row_id; + this.rowNameToMove = data[0].row_name || this.i18n.t('storage_locations.show.hidden'); this.assignToContainer = null; this.assignToPosition = null; this.cellIdToUnassign = data[0].id; diff --git a/app/javascript/vue/storage_locations/modals/assign.vue b/app/javascript/vue/storage_locations/modals/assign.vue index 2cb53d78f..d99290704 100644 --- a/app/javascript/vue/storage_locations/modals/assign.vue +++ b/app/javascript/vue/storage_locations/modals/assign.vue @@ -10,19 +10,25 @@
{{ i18n.t(`storage_locations.show.assign_modal.selected_row_description`, { name: selectedRowName }) }}
+- {{ i18n.t(`storage_locations.show.assign_modal.${assignMode}_description`) }} + {{ i18n.t(`storage_locations.show.assign_modal.assign_description`) }}