mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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('');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user