discourse/app/assets/javascripts/admin/addon/helpers/check-icon.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
352 B
JavaScript
Raw Normal View History

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