Fixed an issue where the prompt is not visible when clicking on the 'save results to file' button on the large data. #5338

corrected issue id

corrected order of release notes
This commit is contained in:
Pravesh Sharma
2022-09-27 14:27:22 +05:30
committed by GitHub
parent 0b6b2e733a
commit add5404f5e
2 changed files with 3 additions and 2 deletions

View File

@@ -869,14 +869,14 @@ export function ResultSet() {
setLoaderText(null);
});
eventBus.registerListener(QUERY_TOOL_EVENTS.TRIGGER_SAVE_RESULTS, ()=>{
eventBus.registerListener(QUERY_TOOL_EVENTS.TRIGGER_SAVE_RESULTS, async ()=>{
let extension = queryToolCtx.preferences?.sqleditor?.csv_field_separator === ',' ? '.csv': '.txt';
let fileName = 'data-' + new Date().getTime() + extension;
if(!queryToolCtx.params.is_query_tool) {
fileName = queryToolCtx.params.node_name + extension;
}
setLoaderText(gettext('Downloading results...'));
rsu.current.saveResultsToFile(fileName);
await rsu.current.saveResultsToFile(fileName);
setLoaderText('');
});