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