discourse/app/assets/javascripts/admin/addon/helpers/check-icon.js
2020-12-01 15:31:26 -03:00

9 lines
313 B
JavaScript

import { htmlSafe } from "@ember/template";
import { registerUnbound } from "discourse-common/lib/helpers";
import { renderIcon } from "discourse-common/lib/icon-library";
registerUnbound("check-icon", function (value) {
let icon = value ? "check" : "times";
return htmlSafe(renderIcon("string", icon));
});