mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 14:18:08 +00:00
open modal if any records
This commit is contained in:
@@ -130,10 +130,12 @@ class AppMainElement extends HTMLElement {
|
||||
checkSubscriptions = async () => {
|
||||
if (this.isAuth && !this.subscriptionChecked) {
|
||||
const checked = await this.transactionsService.check({ sortBy: 'transactionDate asc', rpp: 10 });
|
||||
this.createModal('transaction-check', {
|
||||
data: checked,
|
||||
autoInit: false,
|
||||
});
|
||||
if (checked?.totalRecords) {
|
||||
this.createModal('transaction-check', {
|
||||
data: checked,
|
||||
autoInit: false,
|
||||
});
|
||||
}
|
||||
this.subscriptionChecked = true;
|
||||
this.removeEventListener('routechanged', this.checkSubscriptions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user