Override lock icon in category-title-link component
This commit is contained in:
parent
94063e360f
commit
f9b432ea79
|
@ -5,6 +5,7 @@ import { iconHTML, iconNode } from "discourse-common/lib/icon-library";
|
||||||
import { isRTL } from "discourse/lib/text-direction";
|
import { isRTL } from "discourse/lib/text-direction";
|
||||||
import { h } from "virtual-dom";
|
import { h } from "virtual-dom";
|
||||||
import getURL from "discourse-common/lib/get-url";
|
import getURL from "discourse-common/lib/get-url";
|
||||||
|
import categoryTitleLink from "discourse/components/category-title-link";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "category-icons",
|
name: "category-icons",
|
||||||
|
@ -13,6 +14,11 @@ export default {
|
||||||
withPluginApi("0.8.26", (api) => {
|
withPluginApi("0.8.26", (api) => {
|
||||||
let categoryThemeList = settings.category_icon_list.split("|");
|
let categoryThemeList = settings.category_icon_list.split("|");
|
||||||
let lockIcon = settings.category_lock_icon || "lock";
|
let lockIcon = settings.category_lock_icon || "lock";
|
||||||
|
|
||||||
|
categoryTitleLink.reopen({
|
||||||
|
lockIcon: lockIcon,
|
||||||
|
});
|
||||||
|
|
||||||
var get = Em.get,
|
var get = Em.get,
|
||||||
escapeExpression = Handlebars.Utils.escapeExpression;
|
escapeExpression = Handlebars.Utils.escapeExpression;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue