mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 05:55:09 +02:00
qfix: hide large values from activity (#9894)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
+7
-1
@@ -33,6 +33,8 @@
|
||||
$: isUnset = values.length > 0 && !values.some((value) => value != null && value !== '')
|
||||
|
||||
$: isTextType = getIsTextType(attributeModel)
|
||||
$: isTooLarge =
|
||||
isTextType && (values[0] === activity.string.ValueTooLarge || prevValue === activity.string.ValueTooLarge)
|
||||
|
||||
let isDiffShown = false
|
||||
|
||||
@@ -48,7 +50,11 @@
|
||||
<span class="lower"><Label label={attributeModel.label} /></span>
|
||||
</div>
|
||||
{:else if isTextType}
|
||||
{#if preview}
|
||||
{#if isTooLarge}
|
||||
<div class="unset row overflow-label">
|
||||
<Label label={activity.string.ValueTooLarge} />
|
||||
</div>
|
||||
{:else if preview}
|
||||
<div class="row overflow-label">
|
||||
<span class="mr-1"><Icon icon={attributeIcon} size="small" /></span>
|
||||
<Label label={activity.string.Changed} />
|
||||
|
||||
Reference in New Issue
Block a user