mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
Update load budget loading texts (#2730)
* Update load budget loading texts * Release notes
This commit is contained in:
committed by
GitHub
parent
98d4cf450e
commit
ddddec029f
@@ -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 }));
|
||||
};
|
||||
|
||||
6
upcoming-release-notes/2730.md
Normal file
6
upcoming-release-notes/2730.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [joel-jeremy]
|
||||
---
|
||||
|
||||
Smoother budget load/download loading text
|
||||
Reference in New Issue
Block a user