Skip to content

Commit 35fb18d

Browse files
Show loading state when 'Export' clicked (#789)
1 parent 7392ab6 commit 35fb18d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/redux/data/exports/thunks.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export function renderSavedExport(id) {
113113
//dispatch(setIsLoading(true));
114114
//dispatch(setError(null));
115115

116+
dispatch(loadingData("exportCSV", true));
117+
116118
const state = getState();
117119
const projectId = state.data.sessionData.session.project_id;
118120
const jwt = state.data.sessionData.session.token;
@@ -129,6 +131,8 @@ export function renderSavedExport(id) {
129131

130132
await downloadFile(renderedResponse);
131133

134+
dispatch(loadingData("exportCSV", false));
135+
132136
//dispatch(setIsLoading(false));
133137
//dispatch(addNewSavedExport(result));
134138
};

0 commit comments

Comments
 (0)