Merge branch 'features/storage-locations' into ai-sci-10959-fix-css-for-storage-locations

This commit is contained in:
aignatov-bio 2024-08-06 15:16:03 +02:00 committed by GitHub
commit f2ed356f85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -314,7 +314,7 @@
<div v-if="!repository?.is_snapshot" id="divider" class="bg-sn-light-grey flex px-8 items-center self-stretch h-px "></div>
<!-- Locations -->
<section v-if="!repository?.is_snapshot" id="locations-section" ref="locationsSectionRef">
<section v-if="!repository?.is_snapshot" id="locations-section" ref="locationsSectionRef" data-e2e="e2e-CO-itemCard-locations">
<Locations :repositoryRow="repositoryRow" :repository="repository" @reloadRow="reload" />
</section>
<div v-if="!repository?.is_snapshot" id="divider" class="bg-sn-light-grey flex px-8 items-center self-stretch h-px "></div>

View file

@ -1,9 +1,9 @@
<template>
<div v-if="repositoryRow">
<div class="flex items-center gap-4">
<h4>{{ i18n.t('repositories.locations.title', { count: repositoryRow.storage_locations.locations.length }) }}</h4>
<h4 data-e2e="e2e-TX-itemCard-locations-title">{{ i18n.t('repositories.locations.title', { count: repositoryRow.storage_locations.locations.length }) }}</h4>
<button v-if="repositoryRow.permissions.can_manage && repositoryRow.storage_locations.enabled"
@click="openAssignModal = true" class="btn btn-light ml-auto">
@click="openAssignModal = true" class="btn btn-light ml-auto" data-e2e="e2e-BT-itemCard-assignLocation">
{{ i18n.t('repositories.locations.assign') }}
</button>
</div>

View file

@ -8,7 +8,7 @@
<h1><%= t('storage_locations.index.head_title') %></h1>
</div>
</div>
<div class="content-body " data-e2e="e2e-CO-storage_-ocations">
<div class="content-body " data-e2e="e2e-CO-storageLocations">
<div id="storageLocationsTable" class="fixed-content-body">
<storage-locations
actions-url="<%= actions_toolbar_storage_locations_path(current_team) %>"

View file

@ -8,7 +8,7 @@
<h1><%= @storage_location.name %></h1>
</div>
</div>
<div class="content-body" data-e2e="e2e-CO-storage_locations_container">
<div class="content-body" data-e2e="e2e-CO-storageLocations-box">
<div id="StorageLocationsContainer" class="fixed-content-body">
<storage-locations-container
actions-url="<%= actions_toolbar_storage_location_storage_location_repository_rows_path(@storage_location) %>"