mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
show "data is up to date" when the data is not updated in reconciliation statement page / dialog
This commit is contained in:
@@ -292,7 +292,7 @@ import { TransactionType } from '@/core/transaction.ts';
|
||||
import { TRANSACTION_MIN_AMOUNT, TRANSACTION_MAX_AMOUNT } from '@/consts/transaction.ts';
|
||||
import { type TransactionReconciliationStatementResponseItem } from '@/models/transaction.ts';
|
||||
|
||||
import { isDefined } from '@/lib/common.ts';
|
||||
import { isDefined, isEquals } from '@/lib/common.ts';
|
||||
import {
|
||||
getCurrentUnixTime,
|
||||
getDateTypeByDateRange,
|
||||
@@ -481,7 +481,11 @@ function reload(force: boolean): void {
|
||||
endTime: endTime.value
|
||||
}).then(result => {
|
||||
if (force) {
|
||||
showToast('Data has been updated');
|
||||
if (isEquals(reconciliationStatements.value, result)) {
|
||||
showToast('Data is up to date');
|
||||
} else {
|
||||
showToast('Data has been updated');
|
||||
}
|
||||
}
|
||||
|
||||
loading.value = false;
|
||||
|
||||
Reference in New Issue
Block a user