show whether data is updated after pull down

This commit is contained in:
MaysWind
2023-06-18 22:43:47 +08:00
parent 55ad7b2e81
commit eb2e2b0a26
15 changed files with 102 additions and 17 deletions
@@ -590,6 +590,7 @@ export default {
},
reload(done) {
const self = this;
const force = !!done;
if (!done) {
self.loading = true;
@@ -601,6 +602,7 @@ export default {
]).then(() => {
return self.transactionsStore.loadTransactions({
reload: true,
force: force,
autoExpand: true,
defaultCurrency: self.defaultCurrency
});
@@ -609,6 +611,10 @@ export default {
done();
}
if (force) {
self.$toast('Data has been updated');
}
self.loading = false;
}).catch(error => {
if (error.processed || done) {