Merge pull request #8403 from aignatov-bio/ai-sci-11786-fixes-for-item-cards

Fix status and text field on item card [SCI-11786]
This commit is contained in:
aignatov-bio 2025-04-08 11:49:19 +02:00 committed by GitHub
commit cd10171e21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 1 deletions

View file

@ -21,6 +21,7 @@
:isNumber="true"
:unEditableRef="`numberRef`"
:expandable="expandable"
:canEdit="canEdit"
:collapsed="collapsed"
@toggleExpandableState="toggleExpandableState"
@update="update"

View file

@ -18,7 +18,7 @@
></SelectDropdown>
<div v-else-if="status && icon"
class="flex flex-row items-center text-sn-dark-grey font-inter text-sm font-normal leading-5 gap-1.5">
<div v-html="parseEmoji(icon)" class="flex h-6 w-6"></div>
<div v-if="!twemojiInit" v-html="parseEmoji(icon)" class="flex h-6 w-6"></div>
{{ status }}
</div>
<div
@ -49,6 +49,7 @@ export default {
status: null,
selected: null,
isLoading: true,
twemojiInit: true,
options: []
};
},
@ -102,6 +103,7 @@ export default {
twemoji.size = '24x24';
twemoji.base = '/images/twemoji/';
twemoji.parse(this.$refs.container);
this.twemojiInit = false;
}, 300);
}
}

View file

@ -20,6 +20,7 @@
:smartAnnotation="true"
:expandable="expandable"
:collapsed="collapsed"
:canEdit="canEdit"
@toggleExpandableState="toggleExpandableState"
@update="update"
className="px-3"

View file

@ -42,6 +42,7 @@ export default {
initialValue: String,
noContentPlaceholder: String,
placeholder: String,
canEdit: { type: Boolean, default: false },
decimals: { type: Number, default: 0 },
isNumber: { type: Boolean, default: false },
unEditableRef: { type: String, required: true },
@ -110,6 +111,8 @@ export default {
});
},
enableEdit(e) {
if (!this.canEdit) return;
if (e && $(e.target).hasClass('atwho-user-popover')) return;
if (e && $(e.target).hasClass('sa-name')) return;
if (e && $(e.target).hasClass('sa-link')) return;