2018-06-15 11:03:24 -04:00
|
|
|
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
2020-04-30 16:41:02 -04:00
|
|
|
import { htmlSafe } from "@ember/template";
|
2017-07-26 16:33:17 -04:00
|
|
|
|
2018-06-15 11:03:24 -04:00
|
|
|
registerUnbound("check-icon", function(value) {
|
2017-07-26 16:33:17 -04:00
|
|
|
let icon = value ? "check" : "times";
|
2020-04-30 16:41:02 -04:00
|
|
|
return htmlSafe(renderIcon("string", icon));
|
2017-07-26 16:33:17 -04:00
|
|
|
});
|