Remove fallback PM tag

This commit is contained in:
romanrizzi 2019-09-11 17:14:48 -03:00
parent dc6041abcb
commit 3b2f10a450
1 changed files with 1 additions and 7 deletions

View File

@ -133,15 +133,9 @@ function initialize(api) {
const assignedTo = topic.get("assigned_to_user.username");
if (assignedTo) {
const assignedPath = topic.assignedToUserPath;
let assignLabels = `<a data-auto-route='true' class='assigned-to discourse-tag simple' href='${assignedPath}'>${iconHTML(
return `<a data-auto-route='true' class='assigned-to discourse-tag simple' href='${assignedPath}'>${iconHTML(
"user-plus"
)}${assignedTo}</a>`;
if (topic.archetype === "private_message") {
assignLabels += `<div>${iconHTML("envelope")} Message</div>`;
}
return assignLabels;
}
});