This is another refactoring in the multi-step process to remove all uses
of our custom Render Buffer.
Previous commit: f5cca4930d in this
series.
This commit affects the display of some of the unread, new, and unseen
badges in topic lists like when then "show subcategory list above topics
in this category" option is checked.
18 lines
430 B
JavaScript
18 lines
430 B
JavaScript
import Component from "@ember/component";
|
|
|
|
export default Component.extend({
|
|
tagName: "span",
|
|
classNameBindings: [":topic-post-badges"],
|
|
rerenderTriggers: ["url", "unread", "newPosts", "unseen"],
|
|
newDotText: null,
|
|
init() {
|
|
this._super(...arguments);
|
|
this.set(
|
|
"newDotText",
|
|
this.currentUser && this.currentUser.trust_level > 0
|
|
? " "
|
|
: I18n.t("filters.new.lower_title")
|
|
);
|
|
}
|
|
});
|