UBERF-6585 Show hr event description as text (#5379)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-04-17 04:07:37 +07:00 committed by GitHub
parent a506c36298
commit 8e9b23747f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@
"@hcengineering/contact-resources": "^0.6.0",
"@hcengineering/attachment-resources": "^0.6.0",
"@hcengineering/workbench-resources": "^0.6.1",
"@hcengineering/text": "^0.6.1",
"@hcengineering/text-editor": "^0.6.0",
"@hcengineering/setting": "^0.6.11",
"@hcengineering/attachment": "^0.6.9",

View File

@ -15,6 +15,7 @@
<script lang="ts">
import hr, { Request, RequestType } from '@hcengineering/hr'
import { getClient } from '@hcengineering/presentation'
import { jsonToText, markupToJSON } from '@hcengineering/text'
import { Icon, Label, closeTooltip } from '@hcengineering/ui'
import { showMenu } from '@hcengineering/view-resources'
@ -40,7 +41,7 @@
showMenu(e, { object: request })
}
$: description = shouldShowDescription ? request.description.replace(/<[^>]*>/g, '').trim() : ''
$: description = shouldShowDescription ? jsonToText(markupToJSON(request.description)) : ''
</script>
{#await getType(request) then type}