mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Merge pull request #7781 from KlemenSciNote/kb_SCI-10943_data-e2e-storage-locations
Add data-e2e to storage locations for Pendo [SCI-10943]
This commit is contained in:
commit
05948ff9ec
5 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div v-if="withGrid">
|
||||
<div class="py-4">
|
||||
<div class="h-11">
|
||||
<button class="btn btn-primary" @click="assignRow">
|
||||
<button class="btn btn-primary" @click="assignRow" data-e2e="e2e-BT-topToolbar-locations-assignItem">
|
||||
<i class="sn-icon sn-icon-new-task"></i>
|
||||
{{ i18n.t('storage_locations.show.toolbar.assign') }}
|
||||
</button>
|
||||
|
|
|
@ -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) %>"
|
||||
|
|
|
@ -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) %>"
|
||||
|
|
Loading…
Reference in a new issue