mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the Save button is enabled for functions/procedures by default when open the properties dialog. Fixes #5073
This commit is contained in:
parent
4fc36a9053
commit
5a5a9314f3
@ -18,4 +18,5 @@ Bug fixes
|
||||
*********
|
||||
|
||||
| `Issue #4959 <https://redmine.postgresql.org/issues/4959>`_ - Fixed an issue where the properties tab for collection nodes is unresponsive after switching the tabs.
|
||||
| `Issue #5073 <https://redmine.postgresql.org/issues/5073>`_ - Fixed an issue where the Save button is enabled for functions/procedures by default when open the properties dialog.
|
||||
| `Issue #6159 <https://redmine.postgresql.org/issues/6159>`_ - Ensure that the user should be able to kill the session from Dashboard if the user has a 'pg_signal_backend' role.
|
||||
|
@ -179,7 +179,7 @@ define('pgadmin.node.function', [
|
||||
proiswindow: undefined, /* Window Function ? */
|
||||
proparallel: undefined, /* Parallel mode */
|
||||
procost: undefined, /* Estimated execution Cost */
|
||||
prorows: undefined, /* Estimated number of rows */
|
||||
prorows: 0, /* Estimated number of rows */
|
||||
proleakproof: undefined,
|
||||
prosupportfunc: undefined, /* Support function */
|
||||
arguments: [],
|
||||
@ -306,7 +306,7 @@ define('pgadmin.node.function', [
|
||||
select2: {allowClear: false},
|
||||
},{
|
||||
id: 'procost', label: gettext('Estimated cost'), group: gettext('Options'),
|
||||
cell:'string', type: 'text', readonly: 'isReadonly', deps: ['lanname'],
|
||||
cell:'string', type: 'text', readonly: 'isReadonly', deps: ['lanname'], disabled: 'isDisabled',
|
||||
},{
|
||||
id: 'prorows', label: gettext('Estimated rows'), type: 'text',
|
||||
deps: ['proretset'], visible: 'isVisible', readonly: 'isReadonly',
|
||||
@ -462,9 +462,6 @@ define('pgadmin.node.function', [
|
||||
if(m.get('proretset') == true) {
|
||||
return false;
|
||||
}
|
||||
setTimeout(function() {
|
||||
m.set('prorows', 0);
|
||||
}, 10);
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user