mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where a change to any field in server dialog causes the 'tunnel_identity_file' model value to get included unnecessarily in the update request. Fixes #3389
This commit is contained in:
parent
5f0799714d
commit
f877de6a1f
@ -847,9 +847,10 @@ define('pgadmin.node.server', [
|
|||||||
control: Backform.FileControl, dialog_type: 'select_file', supp_types: ['*'],
|
control: Backform.FileControl, dialog_type: 'select_file', supp_types: ['*'],
|
||||||
deps: ['tunnel_authentication', 'use_ssh_tunnel'],
|
deps: ['tunnel_authentication', 'use_ssh_tunnel'],
|
||||||
disabled: function(model) {
|
disabled: function(model) {
|
||||||
if (!model.get('tunnel_authentication')) {
|
let file = model.get('tunnel_identity_file');
|
||||||
|
if (!model.get('tunnel_authentication') && file) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
model.set('tunnel_identity_file', '');
|
model.set('tunnel_identity_file', null);
|
||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
return !model.get('tunnel_authentication') || !model.get('use_ssh_tunnel');
|
return !model.get('tunnel_authentication') || !model.get('use_ssh_tunnel');
|
||||||
|
Loading…
Reference in New Issue
Block a user