Merge branch 'dm-fix-vue-cant-compile-some-discussions' into 'master'

Escape values passed from Rails to Vue to make sure the template can be compiled

See merge request !10122
This commit is contained in:
Robert Speicher 2017-03-21 21:17:02 +00:00
commit 9ba5f10ff7

View file

@ -37,7 +37,7 @@
":can-resolve" => can_resolve,
":author-name" => "'#{j(note.author.name)}'",
"author-avatar" => note.author.avatar_url,
":note-truncated" => "'#{truncate(note.note, length: 17)}'",
":note-truncated" => "'#{j(truncate(note.note, length: 17))}'",
":resolved-by" => "'#{j(note.resolved_by.try(:name))}'",
"v-show" => "#{can_resolve || note.resolved?}",
"inline-template" => true,