mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed issue where 'Identity file' control of SSH Tunnel tab is enabled when database is connected and 'Use SSH tunneling' flag is set to No.
This commit is contained in:
parent
a7ee85619d
commit
719938a14c
@ -847,12 +847,12 @@ 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') || !model.get('use_ssh_tunnel')) {
|
if (!model.get('tunnel_authentication')) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
model.set('tunnel_identity_file', '');
|
model.set('tunnel_identity_file', '');
|
||||||
}, 10);
|
}, 10);
|
||||||
}
|
}
|
||||||
return !model.get('tunnel_authentication');
|
return !model.get('tunnel_authentication') || !model.get('use_ssh_tunnel');
|
||||||
},
|
},
|
||||||
},{
|
},{
|
||||||
id: 'tunnel_identity_file', label: gettext('Identity file'), type: 'text',
|
id: 'tunnel_identity_file', label: gettext('Identity file'), type: 'text',
|
||||||
|
Loading…
Reference in New Issue
Block a user