Hide assign item button when item is archived in item-card [SCI-9548] (#6471)

This commit is contained in:
Soufiane 2023-10-17 17:05:17 +02:00 committed by GitHub
parent 195d56cfd7
commit e0dd8fb2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@
count: assignedModules ?
assignedModules.total_assigned_size : 0
}) }}
<a v-if="actions?.assign_repository_row || (inRepository && !defaultColumns?.archived)"
<a v-if="actions?.assign_repository_row && !defaultColumns?.archived"
class="btn-text-link font-normal" :class="{
'assign-inventory-button': actions?.assign_repository_row,
'disabled': actions?.assign_repository_row && actions.assign_repository_row.disabled