mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:23:17 -05:00
8 lines
285 B
JavaScript
8 lines
285 B
JavaScript
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));
|
|
});
|