Skip to content
Permalink
Browse files

Remove fallback PM tag

  • Loading branch information...
romanrizzi committed Sep 11, 2019
1 parent dc6041a commit 3b2f10a450facfe63fce757d6bccefeaf9efab04
Showing with 1 addition and 7 deletions.
  1. +1 −7 assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6
@@ -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;
}
});

0 comments on commit 3b2f10a

Please sign in to comment.
You can’t perform that action at this time.