Skip to content

A local-first personal finance app

Update load budget loading texts (#2730)

Joel Jeremy Marquezddddec029f6a
diff --git a/packages/loot-core/src/client/actions/budgets.ts b/packages/loot-core/src/client/actions/budgets.ts
index c663a2934a..7d7c8f5a19 100644
--- a/packages/loot-core/src/client/actions/budgets.ts
+++ b/packages/loot-core/src/client/actions/budgets.ts
@@ -174,23 +174,13 @@ export function uploadBudget(id: string) {
export function closeAndLoadBudget(fileId: string) {
return async (dispatch: Dispatch) => {
- // It's very important that we set this loading message before
- // closing the budget. Otherwise, the manager will ignore our
- // loading message and clear it when it loads, showing the file
- // list which we don't want
- dispatch(setAppState({ loadingText: 'Loading...' }));
await dispatch(closeBudget());
- dispatch(loadBudget(fileId));
+ dispatch(loadBudget(fileId, 'Loading...'));
};
}
export function closeAndDownloadBudget(cloudFileId: string) {
return async (dispatch: Dispatch) => {
- // It's very important that we set this loading message before
- // closing the budget. Otherwise, the manager will ignore our
- // loading message and clear it when it loads, showing the file
- // list which we don't want
- dispatch(setAppState({ loadingText: 'Downloading...' }));
await dispatch(closeBudget());
dispatch(downloadBudget(cloudFileId, { replace: true }));
};
diff --git a/upcoming-release-notes/2730.md b/upcoming-release-notes/2730.md
new file mode 100644
index 0000000000..398107734f
--- /dev/null
+++ b/upcoming-release-notes/2730.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [joel-jeremy]
+---
+
+Smoother budget load/download loading text