mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 07:26:04 +08:00
9 lines
313 B
JavaScript
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));
|
|
});
|