mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 08:32:26 +08:00
FIX: envelope link on suggested topics
This commit is contained in:
parent
20ba54d536
commit
d3f5b4e4b0
|
@ -7,8 +7,9 @@ export default Ember.Component.extend({
|
|||
|
||||
@computed('topic')
|
||||
suggestedTitle(topic) {
|
||||
return topic.get('isPrivateMessage') ?
|
||||
`<a href="${this.get('pmPath')}">${iconHTML('envelope', { class: 'private-message-glyph' })}</a> ${I18n.t("suggested_topics.pm_title")}` :
|
||||
const href = this.currentUser && this.currentUser.pmPath(topic);
|
||||
return topic.get('isPrivateMessage') && href ?
|
||||
`<a href="${href}">${iconHTML('envelope', { class: 'private-message-glyph' })}</a> ${I18n.t("suggested_topics.pm_title")}` :
|
||||
I18n.t("suggested_topics.title");
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user