Rename notification-item to default-notification-item

This commit is contained in:
Daniel Waterworth 2019-06-06 17:00:03 +01:00 committed by Robin Ward
parent 7e70db3fb7
commit 41129f933d
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import { setTransientHeader } from "discourse/lib/ajax";
import { userPath } from "discourse/lib/url";
import { iconNode } from "discourse-common/lib/icon-library";
createWidget("notification-item", {
createWidget("default-notification-item", {
tagName: "li",
buildClasses(attrs) {

View File

@ -13,7 +13,7 @@ createWidget("large-notification-item", {
html(attrs) {
return [
this.attach("notification-item", attrs),
this.attach("default-notification-item", attrs),
h("span.time", dateNode(attrs.created_at))
];
}

View File

@ -89,7 +89,7 @@ export default createWidget("user-notifications", {
result.push(h("div.spinner-container", h("div.spinner")));
} else if (state.notifications.length) {
const notificationItems = state.notifications.map(n =>
this.attach("notification-item", n)
this.attach("default-notification-item", n)
);
result.push(h("hr"));