Fix smart annotation in item card text columns for users without edit permissions [SCI-9888] (#6824)

This commit is contained in:
Soufiane 2023-12-14 13:43:56 +01:00 committed by GitHub
parent a343701299
commit d6a4160652
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,15 +27,16 @@
@update="update"
className="px-3" />
</div>
<div v-else-if="colVal?.edit"
ref="textRef"
class="text-sn-dark-grey box-content text-sm font-normal leading-5 overflow-y-auto pr-3 rounded w-[calc(100%-2rem)]]"
:class="{
'max-h-[4rem]': collapsed,
'max-h-[40rem]': !collapsed
}"
<div v-else-if="colVal?.view"
ref="textRef"
v-html="colVal?.view"
class="text-sn-dark-grey box-content text-sm font-normal leading-5
overflow-y-auto pr-3 rounded w-[calc(100%-2rem)]]"
:class="{
'max-h-[4rem]': collapsed,
'max-h-[40rem]': !collapsed
}"
>
{{ colVal?.edit }}
</div>
<div v-else class="text-sn-dark-grey font-inter text-sm font-normal leading-5 pr-3 py-2 w-[calc(100%-2rem)]]">
{{ i18n.t("repositories.item_card.repository_text_value.no_text") }}