Merge pull request #8045 from aignatov-bio/ai-sci-11288-fix-version-modals-for-api-files

Fix file versions for api flies [SCI-11288]
This commit is contained in:
aignatov-bio 2024-11-15 14:21:44 +01:00 committed by GitHub
commit 096b95781f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,9 @@
</div>
<div class="flex text-xs text-sn-grey justify-start">
<div class="mr-3">{{ fileVersion.attributes.created_at }}</div>
<div class="mr-3 text-nowrap text-ellipsis overflow-hidden max-w-52">{{ fileVersion.attributes.created_by.full_name }}</div>
<div v-if="fileVersion.attributes.created_by" class="mr-3 text-nowrap text-ellipsis overflow-hidden max-w-52">
{{ fileVersion.attributes.created_by.full_name }}
</div>
<div>{{ i18n.t("assets.file_versions_modal.size") }}: {{ Math.round(fileVersion.attributes.byte_size/1024) }}KB</div>
</div>
</div>