From f2aa3842fdc4c082096c83fd47b59fed3c266d04 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 3 Oct 2024 14:11:18 +0200 Subject: [PATCH] Fix assign modal storage locations item card interactions [SCI-11141] --- app/helpers/storage_locations_helper.rb | 2 + .../vue/repository_item_sidebar/locations.vue | 9 ++-- .../vue/storage_locations/modals/assign.vue | 9 +++- .../modals/assign/container_selector.vue | 50 ++++++++++--------- .../modals/assign/position_selector.vue | 10 +++- .../modals/move_tree_mixin.js | 4 +- config/locales/en.yml | 3 ++ 7 files changed, 57 insertions(+), 30 deletions(-) diff --git a/app/helpers/storage_locations_helper.rb b/app/helpers/storage_locations_helper.rb index 1e0b6d651..8754ad523 100644 --- a/app/helpers/storage_locations_helper.rb +++ b/app/helpers/storage_locations_helper.rb @@ -1,5 +1,7 @@ module StorageLocationsHelper def storage_locations_placeholder + return if StorageLocation.storage_locations_enabled? + "
#{I18n.t('storage_locations.storage_locations_disabled')}
" diff --git a/app/javascript/vue/repository_item_sidebar/locations.vue b/app/javascript/vue/repository_item_sidebar/locations.vue index 9f6dd9a5e..88cd3e30a 100644 --- a/app/javascript/vue/repository_item_sidebar/locations.vue +++ b/app/javascript/vue/repository_item_sidebar/locations.vue @@ -7,7 +7,10 @@ {{ i18n.t('repositories.locations.assign') }} -