Remove some of the last few `fa-icon` helpers

This commit is contained in:
Robin Ward 2017-09-14 11:20:19 -04:00
parent b2ffaf93a3
commit 8c2d6118ff
4 changed files with 7 additions and 6 deletions

View File

@ -9,11 +9,11 @@ createWidget('post-link-arrow', {
template: hbs`
{{#if attrs.above}}
<a class="post-info arrow" title={{i18n "topic.jump_reply_up"}}>
{{fa-icon "arrow-up"}}
{{d-icon "arrow-up"}}
</a>
{{else}}
<a class="post-info arrow" title={{i18n "topic.jump_reply_down"}}>
{{fa-icon "arrow-down"}}
{{d-icon "arrow-down"}}
</a>
{{/if}}
`,

View File

@ -6,7 +6,7 @@ import hbs from 'discourse/widgets/hbs-compiler';
createWidget('pm-remove-group-link', {
tagName: 'a.remove-invited',
template: hbs`{{fa-icon "times"}}`,
template: hbs`{{d-icon "times"}}`,
click() {
bootbox.confirm(I18n.t("private_message_info.remove_allowed_group", {name: this.attrs.name}), (confirmed) => {
@ -33,7 +33,7 @@ createWidget('pm-map-user-group', {
createWidget('pm-remove-link', {
tagName: 'a.remove-invited',
template: hbs`{{fa-icon "times"}}`,
template: hbs`{{d-icon "times"}}`,
click() {
bootbox.confirm(I18n.t("private_message_info.remove_allowed_user", {name: this.attrs.username}), (confirmed) => {

View File

@ -27,6 +27,7 @@ function mustacheValue(node, state) {
break;
case 'fa-icon':
case 'd-icon':
state.helpersUsed.iconNode = true;
let icon = node.params[0].value;
return `__iN("${icon}")`;

View File

@ -198,12 +198,12 @@ widgetTest('widget attaching', {
}
});
widgetTest("handlebars fa-icon", {
widgetTest("handlebars d-icon", {
template: `{{mount-widget widget="hbs-icon-test" args=args}}`,
beforeEach() {
createWidget('hbs-icon-test', {
template: hbs`{{fa-icon "arrow-down"}}`
template: hbs`{{d-icon "arrow-down"}}`
});
},