change(ui) - reload alert count on ignore

This commit is contained in:
Shekar Siri 2022-07-15 11:35:29 +02:00
parent 92e44a7af4
commit 31c470de07
2 changed files with 3 additions and 1 deletions

View file

@ -44,6 +44,7 @@ export default class NotificationStore {
notification.viewed = true;
return notification;
});
this.fetchNotificationsCount();
resolve(response);
}).catch((error: any) => {
reject(error);
@ -63,6 +64,7 @@ export default class NotificationStore {
}
return notification;
});
this.fetchNotificationsCount();
resolve(response);
}).catch((error: any) => {
reject(error);

View file

@ -74,7 +74,7 @@ export default class UserService {
.then((response: { data: any; }) => response.data || {});
}
ignoreNotification(notificationId: string) {
ignoreNotification(notificationId: number) {
return this.client.get(`/notifications/${notificationId}/view`)
.then((response: { json: () => any; }) => response.json())
.then((response: { data: any; }) => response.data || {});