Merge pull request #8486 from aignatov-bio/ai-sci-11859-fix-extend-collapse-icon-storage-locations

Fix extend/collapse icon for storage locations [SCI-11859]
This commit is contained in:
aignatov-bio 2025-05-06 19:43:53 +02:00 committed by GitHub
commit cca05960c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,8 +3,8 @@
:key="storageLocationTree.storage_location.id"> :key="storageLocationTree.storage_location.id">
<div class="flex items-center"> <div class="flex items-center">
<i v-if="storageLocationTree.children.length > 0" <i v-if="storageLocationTree.children.length > 0"
:class="{'sn-icon-up': opendedStorageLocations[storageLocationTree.storage_location.id], :class="{'sn-icon-down': opendedStorageLocations[storageLocationTree.storage_location.id],
'sn-icon-down': !opendedStorageLocations[storageLocationTree.storage_location.id]}" 'sn-icon-right': !opendedStorageLocations[storageLocationTree.storage_location.id]}"
@click="opendedStorageLocations[storageLocationTree.storage_location.id] = !opendedStorageLocations[storageLocationTree.storage_location.id]" @click="opendedStorageLocations[storageLocationTree.storage_location.id] = !opendedStorageLocations[storageLocationTree.storage_location.id]"
class="sn-icon p-2 pr-1 cursor-pointer"></i> class="sn-icon p-2 pr-1 cursor-pointer"></i>
<i v-else class="sn-icon sn-icon-up p-2 pr-1 opacity-0"></i> <i v-else class="sn-icon sn-icon-up p-2 pr-1 opacity-0"></i>