Remove fallback PM tag
This commit is contained in:
parent
dc6041abcb
commit
3b2f10a450
|
@ -133,15 +133,9 @@ function initialize(api) {
|
||||||
const assignedTo = topic.get("assigned_to_user.username");
|
const assignedTo = topic.get("assigned_to_user.username");
|
||||||
if (assignedTo) {
|
if (assignedTo) {
|
||||||
const assignedPath = topic.assignedToUserPath;
|
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"
|
"user-plus"
|
||||||
)}${assignedTo}</a>`;
|
)}${assignedTo}</a>`;
|
||||||
|
|
||||||
if (topic.archetype === "private_message") {
|
|
||||||
assignLabels += `<div>${iconHTML("envelope")} Message</div>`;
|
|
||||||
}
|
|
||||||
|
|
||||||
return assignLabels;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue