Skip to content

Commit

Permalink
Merge pull request #170 from alerta/use-v-html-for-text
Browse files Browse the repository at this point in the history
Use v-html for alert text so html links work
  • Loading branch information
satterly authored May 13, 2019
2 parents 7a1d417 + 97af3d9 commit 43e5a6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AlertDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
</div>
<div class="flex xs6 text-xs-left">
<div>
{{ item.text }}
<span v-html="item.text"></span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/AlertList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
v-if="col == 'text'"
class="text-no-wrap"
>
{{ props.item.text }}
<span v-html="props.item.text"></span>
</span>
<span
v-if="col == 'tags'"
Expand Down Expand Up @@ -222,7 +222,7 @@
>
<div class="fixed-table">
<div class="text-truncate">
{{ props.item.text }}
<span v-html="props.item.text"></span>
</div>
</div>
</td>
Expand Down

0 comments on commit 43e5a6d

Please sign in to comment.