change(ui) - reload alert count on ignore
This commit is contained in:
parent
92e44a7af4
commit
31c470de07
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 || {});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue