mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 12:43:43 +08:00
8 lines
285 B
Plaintext
8 lines
285 B
Plaintext
|
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));
|
||
|
});
|