This splits out previous message correspondence from suggeted and instead has a dedicated section called "related messages"
18 lines
574 B
JavaScript
18 lines
574 B
JavaScript
import computed from "ember-addons/ember-computed-decorators";
|
|
import { iconHTML } from "discourse-common/lib/icon-library";
|
|
|
|
export default Ember.Component.extend({
|
|
elementId: "related-messages",
|
|
classNames: ["suggested-topics"],
|
|
|
|
@computed("topic")
|
|
relatedTitle(topic) {
|
|
const href = this.currentUser && this.currentUser.pmPath(topic);
|
|
return href
|
|
? `<a href="${href}">${iconHTML("envelope", {
|
|
class: "private-message-glyph"
|
|
})}</a><span>${I18n.t("related_messages.title")}</span>`
|
|
: I18n.t("related_messages.title");
|
|
}
|
|
});
|