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:
Nikhil Mohite
2020-12-17 11:37:03 +05:30
committed by Akshay Joshi
parent cb0a914099
commit a7b8d77ed7
2 changed files with 9 additions and 1 deletions

View File

@@ -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);