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