DEV: Add data-topic-id to more elements containing titles.

This commit is contained in:
Dan Ungureanu
2018-11-04 11:23:45 +02:00
committed by Sam
parent 8837fe47d7
commit 1f9f00a629
6 changed files with 18 additions and 7 deletions
@@ -66,9 +66,9 @@ export default Ember.Component.extend({
},
_formatReplyToTopic(link) {
return `<a class="topic-link" href="${link.href}">${
link.anchor
}</a>`.htmlSafe();
return `<a class="topic-link" href="${link.href}" data-topic-id="${this.get(
"model.topic.id"
)}">${link.anchor}</a>`.htmlSafe();
},
_formatReplyToUserPost(avatar, link) {