UI: Fixed udated page in inbox notification
This commit is contained in:
parent
ddb23ce322
commit
faba4185ce
@ -133,10 +133,11 @@ export class InboxTableConfigResolver implements Resolve<EntityTableConfig<Notif
|
|||||||
this.config.getTable().dataSource.pageData$.pipe(take(1)).subscribe(
|
this.config.getTable().dataSource.pageData$.pipe(take(1)).subscribe(
|
||||||
(value) => {
|
(value) => {
|
||||||
if (value.data.length === 1 && this.config.getTable().pageLink.page) {
|
if (value.data.length === 1 && this.config.getTable().pageLink.page) {
|
||||||
this.config.getTable().pageLink.page--;
|
this.config.getTable().paginator.previousPage();
|
||||||
}
|
} else {
|
||||||
this.config.updateData();
|
this.config.updateData();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
entity.status = NotificationStatus.READ;
|
entity.status = NotificationStatus.READ;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user