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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -34,4 +34,5 @@ Bug fixes
| `Issue #5261 <https://github.com/pgadmin-org/pgadmin4/issues/5261>`_ - Ensure that the search filter should be cleared when a new row is added to the user management.
| `Issue #5262 <https://github.com/pgadmin-org/pgadmin4/issues/5262>`_ - Ensure that the user management dialog should not allow the same email addresses with different letter casings when creating users.
| `Issue #5308 <https://github.com/pgadmin-org/pgadmin4/issues/5308>`_ - Ensure that the default value for a column should be used if it is made empty.
| `Issue #5338 <https://github.com/pgadmin-org/pgadmin4/issues/5338>`_ - Fixed an issue where the prompt is not visible when clicking on the 'save results to file' button on the large data.
| `Issue #5368 <https://github.com/pgadmin-org/pgadmin4/issues/5368>`_ - Fixed the issue while downloading the file from the file manager.

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('');
});