mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-03 08:29:54 +00:00
Don't render html for field descriptions
This commit is contained in:
parent
4df7d2c44a
commit
2afb4b51d3
14 changed files with 88 additions and 105 deletions
web-frontend/modules/database/components/row
|
@ -9,10 +9,12 @@
|
|||
{{ field.name }}
|
||||
<span v-if="field.description" class="margin-left-1">
|
||||
<HelpIcon
|
||||
:tooltip="descriptionText"
|
||||
:tooltip-duration="3"
|
||||
:tooltip-content-type="'html'"
|
||||
:tooltip-content-classes="'tooltip__content--expandable'"
|
||||
:tooltip="field.description || ''"
|
||||
:tooltip-content-type="'plain'"
|
||||
:tooltip-content-classes="[
|
||||
'tooltip__content--expandable',
|
||||
'tooltip__content--expandable-plain-text',
|
||||
]"
|
||||
:icon="'info-empty'"
|
||||
/>
|
||||
</span>
|
||||
|
@ -121,11 +123,6 @@ export default {
|
|||
default: () => true,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
descriptionText() {
|
||||
return (this.field.description || '').replaceAll('\n', '<br/>')
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
getFieldComponent(type) {
|
||||
return this.$registry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue