From 6c7736b81ed56be7d77166c3c7072cfbd37f35aa Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 9 Oct 2024 13:14:26 +0200 Subject: [PATCH] Improve box item move modal [SCI-11162] --- app/javascript/vue/storage_locations/container.vue | 5 +++++ .../vue/storage_locations/modals/assign.vue | 12 +++++++++--- config/locales/en.yml | 4 ++-- 3 files changed, 16 insertions(+), 5 deletions(-) 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 @@ - +