Update load budget loading texts (#2730)

* Update load budget loading texts

* Release notes
This commit is contained in:
Joel Jeremy Marquez
2024-05-08 15:58:01 -07:00
committed by GitHub
parent 98d4cf450e
commit ddddec029f
2 changed files with 7 additions and 11 deletions

View File

@@ -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 }));
};

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [joel-jeremy]
---
Smoother budget load/download loading text