Skip to content
Snippets Groups Projects
Unverified Commit ddddec02 authored by Joel Jeremy Marquez's avatar Joel Jeremy Marquez Committed by GitHub
Browse files

Update load budget loading texts (#2730)

* Update load budget loading texts

* Release notes
parent 98d4cf45
No related branches found
No related tags found
No related merge requests found
...@@ -174,23 +174,13 @@ export function uploadBudget(id: string) { ...@@ -174,23 +174,13 @@ export function uploadBudget(id: string) {
export function closeAndLoadBudget(fileId: string) { export function closeAndLoadBudget(fileId: string) {
return async (dispatch: Dispatch) => { 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()); await dispatch(closeBudget());
dispatch(loadBudget(fileId)); dispatch(loadBudget(fileId, 'Loading...'));
}; };
} }
export function closeAndDownloadBudget(cloudFileId: string) { export function closeAndDownloadBudget(cloudFileId: string) {
return async (dispatch: Dispatch) => { 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()); await dispatch(closeBudget());
dispatch(downloadBudget(cloudFileId, { replace: true })); dispatch(downloadBudget(cloudFileId, { replace: true }));
}; };
......
---
category: Enhancements
authors: [joel-jeremy]
---
Smoother budget load/download loading text
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment