Fix smart annotation links on the item card [SCI-9571] (#6501)

This commit is contained in:
Alex Kriuchykhin 2023-10-19 16:35:15 +02:00 committed by GitHub
parent efaef6f182
commit 18c03eb836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -751,7 +751,6 @@ var RepositoryDatatable = (function(global) {
TABLE.context[0].oLanguage.sEmptyTable = archived ? I18n.t('repositories.show.no_archived_items') : I18n.t('repositories.show.no_items');
TABLE.context[0].oLanguage.sZeroRecords = archived ? I18n.t('repositories.show.no_archived_items_matched') : I18n.t('repositories.show.no_items_matched');
animateSpinner(this);
$('.record-info-link').off('click');
},
stateLoadCallback: function(settings, callback) {
var repositoryId = $(TABLE_ID).data('repository-id');
@ -864,6 +863,7 @@ var RepositoryDatatable = (function(global) {
$(TABLE_ID).on('click', 'tbody td', function(ev) {
// Skip if clicking on selector checkbox, edit icon or link
if ($(ev.target).is('.row-reminders-icon, .repository-row-selector, .repository-row-edit-icon, a')) return;
if ($(ev.target).parents().is('a')) return;
$(this).parent().find('.repository-row-selector').trigger('click');
});

View file

@ -7,10 +7,8 @@
i18n.t('repositories.item_card.repository_text_value.expand') }}
</div>
</div>
<div v-if="edit" ref="textRef" class="text-sn-dark-grey font-inter text-sm font-normal leading-5 overflow-y-auto"
:class="{ 'max-h-[60px]': !contentExpanded,
'max-h-[600px]': contentExpanded }">
{{ edit }}
<div v-if="view" v-html="view" ref="textRef" class="text-sn-dark-grey font-inter text-sm font-normal leading-5 overflow-y-auto"
:class="{ 'max-h-[60px]': !contentExpanded, 'max-h-[600px]': contentExpanded }">
</div>
<div v-else class="text-sn-dark-grey font-inter text-sm font-normal leading-5">
{{ i18n.t('repositories.item_card.repository_text_value.no_text') }}