diff --git a/app/javascript/packs/vue/storage_locations_container.js b/app/javascript/packs/vue/storage_locations_container.js index abf6912c3..e7f2e6259 100644 --- a/app/javascript/packs/vue/storage_locations_container.js +++ b/app/javascript/packs/vue/storage_locations_container.js @@ -7,4 +7,4 @@ const app = createApp(); app.component('StorageLocationsContainer', StorageLocationsContainer); app.config.globalProperties.i18n = window.I18n; app.use(PerfectScrollbar); -mountWithTurbolinks(app, '#StorageLocationsContainer'); +window.StorageLocationsContainer = mountWithTurbolinks(app, '#StorageLocationsContainer'); diff --git a/app/javascript/vue/repository_item_sidebar/Title.vue b/app/javascript/vue/repository_item_sidebar/Title.vue index c238c63a1..9bba67953 100644 --- a/app/javascript/vue/repository_item_sidebar/Title.vue +++ b/app/javascript/vue/repository_item_sidebar/Title.vue @@ -3,7 +3,7 @@ :characterMinLimit="0" :allowBlank="false" :smartAnnotation="false" :preventLeavingUntilFilled="true" :attributeName="`${i18n.t('repositories.item_card.header_title')}`" :singleLine="true" - @editingEnabled="editingName = true" @editingDisabled="editingName = false" @update="updateName" @delete="handleDelete"> + @editingEnabled="editingName = true" @editingDisabled="editingName = false" @update="updateName">

{{ computedName }}

diff --git a/app/javascript/vue/repository_item_sidebar/locations.vue b/app/javascript/vue/repository_item_sidebar/locations.vue index 7b3898797..4f61847c1 100644 --- a/app/javascript/vue/repository_item_sidebar/locations.vue +++ b/app/javascript/vue/repository_item_sidebar/locations.vue @@ -22,7 +22,9 @@
{{ formatPosition(position.metadata.position) }} - +
@@ -41,8 +43,11 @@ diff --git a/app/serializers/lists/storage_location_repository_row_serializer.rb b/app/serializers/lists/storage_location_repository_row_serializer.rb index c86b42e94..00509d457 100644 --- a/app/serializers/lists/storage_location_repository_row_serializer.rb +++ b/app/serializers/lists/storage_location_repository_row_serializer.rb @@ -6,7 +6,7 @@ module Lists include Rails.application.routes.url_helpers attributes :created_by, :created_on, :position, :row_id, :row_name, :hidden, :position_formatted, :stock, - :have_reminders, :reminders_url + :have_reminders, :reminders_url, :row_url def row_id object.repository_row.code @@ -38,6 +38,10 @@ module Lists end end + def row_url + repository_repository_row_path(object.repository_row.repository, object.repository_row) + end + def hidden !can_read_repository?(object.repository_row.repository) end diff --git a/app/views/storage_locations/show.html.erb b/app/views/storage_locations/show.html.erb index eefdfdcf0..0037e222a 100644 --- a/app/views/storage_locations/show.html.erb +++ b/app/views/storage_locations/show.html.erb @@ -11,6 +11,7 @@