Skip to content

Commit

Permalink
Added html output support for text elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
tertek committed Jan 17, 2022
1 parent 1c3649f commit b8f77e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions dist/appRender.js
Original file line number Diff line number Diff line change
Expand Up @@ -49987,14 +49987,11 @@ var render = function () {
_vm.element.type == "text"
? _c("div", [
_vm.element.content.title
? _c(
"h2",
{
staticClass: "lead mt-3",
class: _vm.textDecorations(_vm.element.content.decoration),
},
[_vm._v(_vm._s(_vm.element.content.title))]
)
? _c("h2", {
staticClass: "lead mt-3",
class: _vm.textDecorations(_vm.element.content.decoration),
domProps: { innerHTML: _vm._s(_vm.element.content.title) },
})
: _c("div", { staticClass: "empty-text" }),
])
: _vm.element.type == "link"
Expand Down
2 changes: 1 addition & 1 deletion src/render/components/DashboardElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>

<div v-if="element.type == 'text'">
<h2 v-if="element.content.title" class="lead mt-3" :class="textDecorations(element.content.decoration)">{{ element.content.title }}</h2>
<h2 v-if="element.content.title" class="lead mt-3" :class="textDecorations(element.content.decoration)" v-html="element.content.title"></h2>
<div class="empty-text" v-else></div>
</div>

Expand Down

0 comments on commit b8f77e6

Please sign in to comment.