mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the state of the Save File icon does not match the dirty editor indicator. Fixes #6046
This commit is contained in:
committed by
Akshay Joshi
parent
cb0a914099
commit
a7b8d77ed7
@@ -4286,7 +4286,14 @@ define('tools.querytool', [
|
||||
$('#btn-explain-options-dropdown').prop('disabled', mode_disabled);
|
||||
$('#btn-edit-dropdown').prop('disabled', mode_disabled);
|
||||
$('#btn-load-file').prop('disabled', mode_disabled);
|
||||
$('#btn-save-file').prop('disabled', mode_disabled);
|
||||
if(this.gridView.current_file) {
|
||||
if(this.gridView.query_tool_obj.file_data != this.gridView.query_tool_obj.getValue()) {
|
||||
$('#btn-save-file').prop('disabled', mode_disabled);
|
||||
}
|
||||
} else {
|
||||
$('#btn-save-file').prop('disabled', mode_disabled);
|
||||
}
|
||||
|
||||
$('#btn-file-menu-dropdown').prop('disabled', mode_disabled);
|
||||
$('#btn-find').prop('disabled', mode_disabled);
|
||||
$('#btn-find-menu-dropdown').prop('disabled', mode_disabled);
|
||||
|
||||
Reference in New Issue
Block a user