mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:07:53 +08:00
UX: Allow emojis to be displayed in nav-item.
This commit is contained in:
parent
ef78268c01
commit
581cf62bcf
|
@ -1,4 +1,5 @@
|
|||
import { toTitleCase } from "discourse/lib/formatter";
|
||||
import { emojiUnescape } from "discourse/lib/text";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
|
||||
const NavItem = Discourse.Model.extend({
|
||||
|
@ -30,7 +31,9 @@ const NavItem = Discourse.Model.extend({
|
|||
extra.categoryName = toTitleCase(categoryName);
|
||||
}
|
||||
|
||||
return I18n.t(`filters.${name.replace("/", ".") + titleKey}`, extra);
|
||||
return emojiUnescape(
|
||||
I18n.t(`filters.${name.replace("/", ".") + titleKey}`, extra)
|
||||
);
|
||||
},
|
||||
|
||||
@computed("name")
|
||||
|
|
Loading…
Reference in New Issue
Block a user