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') }} -