mirror of
https://github.com/discourse/discourse-category-icons.git
synced 2025-03-09 13:18:31 +00:00
Use imports for Ember.get and escapeExpression
This commit is contained in:
parent
0d5750f791
commit
31729996c2
@ -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>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user