mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
Rename notification-item to default-notification-item
This commit is contained in:
parent
7e70db3fb7
commit
41129f933d
|
@ -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) {
|
|
@ -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))
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user