diff --git a/app/javascript/vue/storage_locations/modals/assign.vue b/app/javascript/vue/storage_locations/modals/assign.vue
index b3bfa0a6d..7074c2fb2 100644
--- a/app/javascript/vue/storage_locations/modals/assign.vue
+++ b/app/javascript/vue/storage_locations/modals/assign.vue
@@ -7,7 +7,10 @@
-
+
+ {{ i18n.t(`storage_locations.show.assign_modal.selected_position_title`, { position: formattedPosition }) }}
+
+
{{ i18n.t(`storage_locations.show.assign_modal.${assignMode}_title`) }}
@@ -65,6 +68,12 @@ export default {
storage_location_id: this.containerId
});
},
+ formattedPosition() {
+ if (this.selectedPosition) {
+ return String.fromCharCode(96 + parseInt(this.selectedPosition[0], 10)).toUpperCase() + this.selectedPosition[1];
+ }
+ return '';
+ },
moveUrl() {
return move_storage_location_storage_location_repository_row_path(this.containerId, this.cellId);
},
diff --git a/config/locales/en.yml b/config/locales/en.yml
index aeceadd05..5b5ec225a 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2691,6 +2691,7 @@ en:
description_single: 'Are you sure you want to remove item from this location?'
button: 'Unassign'
assign_modal:
+ selected_position_title: 'Assign to position %{position}'
assign_title: 'Assign position'
move_title: 'Move item'
assign_description: 'Select an item to assign it to a location.'