From 8e79237e2f18892ff78416d89f3d4bd198fb1c23 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 12 Sep 2024 14:36:55 +0200 Subject: [PATCH] Fix interactions for box locations [SCI-11033] --- .../vue/storage_locations/container.vue | 2 +- .../vue/storage_locations/modals/new_edit.vue | 2 +- .../vue/storage_locations/table.vue | 12 +++--- .../vue/user_preferences/container.vue | 18 ++++----- .../lists/storage_location_serializer.rb | 2 + .../lists/storage_locations_service.rb | 39 +++++++++++++++++++ .../storage_locations/import_service.rb | 2 +- config/initializers/extends.rb | 2 + config/locales/en.yml | 4 +- 9 files changed, 63 insertions(+), 20 deletions(-) diff --git a/app/javascript/vue/storage_locations/container.vue b/app/javascript/vue/storage_locations/container.vue index e5b3a4174..c74e075d8 100644 --- a/app/javascript/vue/storage_locations/container.vue +++ b/app/javascript/vue/storage_locations/container.vue @@ -127,7 +127,7 @@ export default { field: 'position_formatted', headerName: this.i18n.t('storage_locations.show.table.position'), sortable: true, - notSelectable: true + cellClass: 'text-sn-blue cursor-pointer' }, { field: 'reminders', diff --git a/app/javascript/vue/storage_locations/modals/new_edit.vue b/app/javascript/vue/storage_locations/modals/new_edit.vue index 22843b34c..a4a01826e 100644 --- a/app/javascript/vue/storage_locations/modals/new_edit.vue +++ b/app/javascript/vue/storage_locations/modals/new_edit.vue @@ -21,7 +21,7 @@ {{ this.errors.name }} diff --git a/app/javascript/vue/storage_locations/table.vue b/app/javascript/vue/storage_locations/table.vue index 66f52d9df..6fd836dc0 100644 --- a/app/javascript/vue/storage_locations/table.vue +++ b/app/javascript/vue/storage_locations/table.vue @@ -116,12 +116,7 @@ export default { sortable: true }, { - field: 'items', - headerName: this.i18n.t('storage_locations.index.table.items'), - sortable: true - }, - { - field: 'shared', + field: 'shared_label', headerName: this.i18n.t('storage_locations.index.table.shared'), sortable: true }, @@ -135,6 +130,11 @@ export default { headerName: this.i18n.t('storage_locations.index.table.created_on'), sortable: true }, + { + field: 'created_by', + headerName: this.i18n.t('storage_locations.index.table.created_by'), + sortable: true + }, { field: 'description', headerName: this.i18n.t('storage_locations.index.table.description'), diff --git a/app/javascript/vue/user_preferences/container.vue b/app/javascript/vue/user_preferences/container.vue index f960b49b9..de10f81bd 100644 --- a/app/javascript/vue/user_preferences/container.vue +++ b/app/javascript/vue/user_preferences/container.vue @@ -41,16 +41,14 @@