Add missing icon

Add missing icon

From 613cf478a0606f35376de4c6c51e8914a5a836af Mon Sep 17 00:00:00 2001
From: Penar Musaraj <pmusaraj@gmail.com>
Date: Wed, 7 Nov 2018 21:26:27 -0500
Subject: [PATCH] Add missing icon


diff --git a/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6 b/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6
index 9fa9f6b..4aa3b43 100644
--- a/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6
+++ b/assets/javascripts/discourse-assign/initializers/extend-for-assigns.js.es6
@@ -5,6 +5,7 @@ import { default as computed } from "ember-addons/ember-computed-decorators";
 import showModal from "discourse/lib/show-modal";
 import { iconNode } from "discourse-common/lib/icon-library";
 import { h } from "virtual-dom";
+import { iconHTML } from "discourse-common/lib/icon-library";
 
 function modifySelectKit(api) {
   api
@@ -115,7 +116,9 @@ function initialize(api) {
     const assignedTo = topic.get("assigned_to_user.username");
     if (assignedTo) {
       const assignedPath = topic.get("assignedToUserPath");
-      return `<a class='assigned-to discourse-tag simple' href='${assignedPath}'><i class='fa fa-user-plus'></i>${assignedTo}</a>`;
+      return `<a class='assigned-to discourse-tag simple' href='${assignedPath}'>${iconHTML(
+        "user-plus"
+      )}${assignedTo}</a>`;
     }
   });

GitHub

2 Likes