}
async getData(): Promise<UserMenuData[]> {
- const data = (await dboAction(
- "getModerationQueueData",
- "wcf\\data\\moderation\\queue\\ModerationQueueAction",
- ).dispatch()) as UserMenuData[];
+ const data = (await dboAction("getModerationQueueData", "wcf\\data\\moderation\\queue\\ModerationQueueAction")
+ .disableLoadingIndicator()
+ .dispatch()) as UserMenuData[];
const counter = data.filter((item) => item.isUnread).length;
this.updateCounter(counter);
}
async getData(): Promise<UserMenuData[]> {
- const data = (await dboAction(
- "getNotificationData",
- "wcf\\data\\user\\notification\\UserNotificationAction",
- ).dispatch()) as UserMenuData[];
+ const data = (await dboAction("getNotificationData", "wcf\\data\\user\\notification\\UserNotificationAction")
+ .disableLoadingIndicator()
+ .dispatch()) as UserMenuData[];
const counter = data.filter((item) => item.isUnread).length;
this.updateCounter(counter);
];
}
async getData() {
- const data = (await (0, Ajax_1.dboAction)("getModerationQueueData", "wcf\\data\\moderation\\queue\\ModerationQueueAction").dispatch());
+ const data = (await (0, Ajax_1.dboAction)("getModerationQueueData", "wcf\\data\\moderation\\queue\\ModerationQueueAction")
+ .disableLoadingIndicator()
+ .dispatch());
const counter = data.filter((item) => item.isUnread).length;
this.updateCounter(counter);
this.stale = false;
return "com.woltlab.wcf.notifications";
}
async getData() {
- const data = (await (0, Ajax_1.dboAction)("getNotificationData", "wcf\\data\\user\\notification\\UserNotificationAction").dispatch());
+ const data = (await (0, Ajax_1.dboAction)("getNotificationData", "wcf\\data\\user\\notification\\UserNotificationAction")
+ .disableLoadingIndicator()
+ .dispatch());
const counter = data.filter((item) => item.isUnread).length;
this.updateCounter(counter);
this.stale = false;