mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
Rename {{fa-icon}}
to {{d-icon}}
so it can be more generic
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
import { registerUnbound } from 'discourse-common/lib/helpers';
|
||||
import { renderIcon } from 'discourse-common/lib/icon-library';
|
||||
import deprecated from 'discourse-common/lib/deprecated';
|
||||
|
||||
export function iconHTML(id, params) {
|
||||
return renderIcon('string', id, params);
|
||||
}
|
||||
|
||||
registerUnbound('fa-icon', function(icon, params) {
|
||||
deprecated("Use `{{d-icon}}` instead of `{{fa-icon}}");
|
||||
return new Handlebars.SafeString(iconHTML(icon, params));
|
||||
});
|
||||
|
Reference in New Issue
Block a user