diff --git a/packages/loot-core/src/client/actions/budgets.ts b/packages/loot-core/src/client/actions/budgets.ts index c663a2934a0d72a59d804341a6ae8c7371c0cbf5..7d7c8f5a199c1e5ef6c950a0d4571159b1a32770 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 0000000000000000000000000000000000000000..398107734fd45b2e99f36cd12a8d67c76539f566 --- /dev/null +++ b/upcoming-release-notes/2730.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [joel-jeremy] +--- + +Smoother budget load/download loading text