Hide export button inntem card when item has no stock set [SCI-9509] (#6478)

This commit is contained in:
wandji 2023-10-18 09:37:56 +01:00 committed by GitHub
parent 965deded98
commit f83f5a8b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
<div class="font-inter text-sm font-semibold leading-5 relative">
<span>{{ colName }}</span>
<a style="text-decoration: none;" class="absolute right-0 btn-text-link font-normal export-consumption-button"
v-if="permissions?.can_export_repository_stock === true" :data-rows="JSON.stringify([repositoryRowId])"
v-if="permissions?.can_export_repository_stock === true && colVal?.stock_formatted" :data-rows="JSON.stringify([repositoryRowId])"
:data-object-id="repositoryId">
{{ i18n.t('repositories.item_card.stock_export') }}
</a>