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

8 lines
285 B
Plaintext
Raw Normal View History

2018-06-15 11:03:24 -04:00
import { registerUnbound } from "discourse-common/lib/helpers";
import { renderIcon } from "discourse-common/lib/icon-library";
2018-06-15 11:03:24 -04:00
registerUnbound("check-icon", function(value) {
let icon = value ? "check" : "times";
2018-06-15 11:03:24 -04:00
return new Handlebars.SafeString(renderIcon("string", icon));
});