mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
Ensure that '.sql' extension is added when saving a file with SQL format.
refs #4855
This commit is contained in:
parent
1c796720be
commit
a4e746c5a4
@ -157,9 +157,7 @@ module.exports = Alertify.dialog('createModeDlg', function() {
|
||||
sep = '\\';
|
||||
}
|
||||
|
||||
if ((!newFile.includes('.') ||
|
||||
newFile.split('.').pop().includes(sep)) &&
|
||||
ext != '*') {
|
||||
if (ext != '*') {
|
||||
newFile = newFile + '.' + ext;
|
||||
$('.storage_dialog #uploader .input-path').val(newFile);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user