FIX: add the required widget for admin-problems notification item (#22602)
This commit is contained in:
parent
dc547e39aa
commit
24ab2f42b0
|
@ -0,0 +1,19 @@
|
||||||
|
import { DefaultNotificationItem } from "discourse/widgets/default-notification-item";
|
||||||
|
import I18n from "I18n";
|
||||||
|
import { createWidgetFrom } from "discourse/widgets/widget";
|
||||||
|
import getURL from "discourse-common/lib/get-url";
|
||||||
|
import { iconNode } from "discourse-common/lib/icon-library";
|
||||||
|
|
||||||
|
createWidgetFrom(DefaultNotificationItem, "admin-problems-notification-item", {
|
||||||
|
text() {
|
||||||
|
return I18n.t("notifications.admin_problems");
|
||||||
|
},
|
||||||
|
|
||||||
|
url() {
|
||||||
|
return getURL("/admin");
|
||||||
|
},
|
||||||
|
|
||||||
|
icon() {
|
||||||
|
return iconNode("gift");
|
||||||
|
},
|
||||||
|
});
|
Loading…
Reference in New Issue