mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Fix length and precision enable/disable issue when changing the data type for Domain node. Fixes #4644.
This commit is contained in:
parent
094e5577e8
commit
dc64ce331a
@ -20,4 +20,5 @@ Bug fixes
|
||||
|
||||
| `Issue #2706 <https://redmine.postgresql.org/issues/2706>`_ - Added ProjectSet icon for explain module.
|
||||
| `Issue #2828 <https://redmine.postgresql.org/issues/2828>`_ - Added Gather Merge, Named Tuple Store Scan and Table Function Scan icon for explain module.
|
||||
| `Issue #4643 <https://redmine.postgresql.org/issues/4643>`_ - Fix Truncate option deselect issue for compound triggers.
|
||||
| `Issue #4643 <https://redmine.postgresql.org/issues/4643>`_ - Fix Truncate option deselect issue for compound triggers.
|
||||
| `Issue #4644 <https://redmine.postgresql.org/issues/4644>`_ - Fix length and precision enable/disable issue when changing the data type for Domain node.
|
@ -217,8 +217,16 @@ define('pgadmin.node.domain', [
|
||||
m.set('min_val', o.min_val, {silent: true});
|
||||
m.set('max_val', o.max_val, {silent: true});
|
||||
}
|
||||
else
|
||||
m.set('is_tlength', false, {silent: true});
|
||||
}
|
||||
});
|
||||
|
||||
!m.get('is_tlength') && setTimeout(function() {
|
||||
if(m.get('typlen')) {
|
||||
m.set('typlen', null);
|
||||
}
|
||||
},10);
|
||||
}
|
||||
return !m.get('is_tlength');
|
||||
},
|
||||
@ -244,8 +252,16 @@ define('pgadmin.node.domain', [
|
||||
m.set('min_val', o.min_val, {silent: true});
|
||||
m.set('max_val', o.max_val, {silent: true});
|
||||
}
|
||||
else
|
||||
m.set('is_precision', false, {silent: true});
|
||||
}
|
||||
});
|
||||
|
||||
!m.get('is_precision') && setTimeout(function() {
|
||||
if(m.get('precision')) {
|
||||
m.set('precision', null);
|
||||
}
|
||||
},10);
|
||||
}
|
||||
return !m.get('is_precision');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user