Use imports for Ember.get and escapeExpression

This commit is contained in:
Penar Musaraj 2020-09-16 12:14:50 -04:00
parent 0d5750f791
commit 31729996c2
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7
1 changed files with 2 additions and 3 deletions

View File

@ -7,6 +7,8 @@ import { h } from "virtual-dom";
import getURL from "discourse-common/lib/get-url";
import categoryTitleLink from "discourse/components/category-title-link";
import I18n from "I18n";
import { get } from "@ember/object";
import { escapeExpression } from "discourse/lib/utilities";
export default {
name: "category-icons",
@ -20,9 +22,6 @@ export default {
lockIcon: lockIcon,
});
var get = Em.get,
escapeExpression = Handlebars.Utils.escapeExpression;
function categoryStripe(color, classes) {
var style = color ? "style='background-color: #" + color + ";'" : "";
return "<span class='" + classes + "' " + style + "></span>";