mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed directory selection issue with the folder dialog. Fixes #6536
This commit is contained in:
committed by
Akshay Joshi
parent
6429a5b31a
commit
5c6d00d545
@@ -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) {
|
||||
|
Reference in New Issue
Block a user