mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
UBERF-6585 Show hr event description as text (#5379)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
a506c36298
commit
8e9b23747f
@ -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",
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user