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

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

8 lines
285 B
Plaintext
Raw Normal View History

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 new Handlebars.SafeString(renderIcon("string", icon));
});