mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
Fixed directory selection issue with the folder dialog. Fixes #6536
This commit is contained in:
parent
6429a5b31a
commit
5c6d00d545
@ -25,6 +25,7 @@ Bug fixes
|
||||
| `Issue #6448 <https://redmine.postgresql.org/issues/6448>`_ - Fixed an issue in the search object when searching in 'all types' or 'subscription' if the user doesn't have access to the subscription.
|
||||
| `Issue #6489 <https://redmine.postgresql.org/issues/6489>`_ - Fixed an issue where Execute/Refresh button should not be disabled when we run the empty query.
|
||||
| `Issue #6505 <https://redmine.postgresql.org/issues/6505>`_ - Fixed an issue where the New Connection Drop Down has lost default maintenance database, auto-select, and tab-through functionality.
|
||||
| `Issue #6536 <https://redmine.postgresql.org/issues/6536>`_ - Fixed directory selection issue with the folder dialog.
|
||||
| `Issue #6541 <https://redmine.postgresql.org/issues/6541>`_ - Ensure that setting 'Open in new browser tab' should be visible, it should not be based on the value of 'ENABLE_PSQL'.
|
||||
| `Issue #6547 <https://redmine.postgresql.org/issues/6547>`_ - Fixed copy/paste issues for PSQL tool terminal.
|
||||
| `Issue #6555 <https://redmine.postgresql.org/issues/6555>`_ - Fixed Czech translation string for 'Login' keyword.
|
||||
|
@ -410,6 +410,13 @@ define([
|
||||
$('.file_manager_ok').attr('disabled', true);
|
||||
Alertify.error(data.Error);
|
||||
}
|
||||
|
||||
// Disable select button if user select file.
|
||||
if (pgAdmin.FileUtils.data.Capabilities.includes('select_folder')) {
|
||||
$('.file_manager_ok').addClass('disabled');
|
||||
$('.file_manager_ok').attr('disabled', true);
|
||||
}
|
||||
|
||||
});
|
||||
return is_file_valid;
|
||||
};
|
||||
@ -655,6 +662,13 @@ define([
|
||||
file_type = '';
|
||||
}
|
||||
var capabilities = pgAdmin.FileUtils.data.Capabilities;
|
||||
|
||||
// Enable select button if user select folder.
|
||||
if (pgAdmin.FileUtils.data.Capabilities.includes('select_folder')) {
|
||||
$('.file_manager_ok').removeClass('disabled');
|
||||
$('.file_manager_ok').attr('disabled', false);
|
||||
}
|
||||
|
||||
// Update location for status, upload, & new folder functions.
|
||||
pgAdmin.FileUtils.setUploader(path);
|
||||
if(user_input) {
|
||||
|
Loading…
Reference in New Issue
Block a user