mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the Vacuum option INDEX_CLEANUP have an incorrect value ('AUTO') for database versions < 14. #6984
This commit is contained in:
parent
222e8cc1f8
commit
3bd2dec663
@ -33,4 +33,5 @@ Bug fixes
|
||||
| `Issue #6921 <https://github.com/pgadmin-org/pgadmin4/issues/6921>`_ - Fixed an issue where on entering full screen, the option label is not changed to 'Exit Full Screen' in desktop mode.
|
||||
| `Issue #6950 <https://github.com/pgadmin-org/pgadmin4/issues/6950>`_ - Ensure that the Authentication Source in the drop-down of the UserManagement dialog aligns with the entries specified for AUTHENTICATION_SOURCES in the configuration file.
|
||||
| `Issue #6958 <https://github.com/pgadmin-org/pgadmin4/issues/6958>`_ - Reverse engineer serial columns when generating ERD for database/table.
|
||||
| `Issue #6984 <https://github.com/pgadmin-org/pgadmin4/issues/6984>`_ - Fixed an issue where the Vacuum option INDEX_CLEANUP have an incorrect value ('AUTO') for database versions < 14.
|
||||
| `Issue #6989 <https://github.com/pgadmin-org/pgadmin4/issues/6989>`_ - Fixed an issue where the pgAdmin page went blank when clicking the delete button in the User Management dialog.
|
||||
|
@ -204,20 +204,25 @@ export class VacuumSchema extends BaseUISchema {
|
||||
type: 'select',
|
||||
label: gettext('INDEX CLEANUP'),
|
||||
controlProps: { allowClear: false, width: '100%' },
|
||||
options: [
|
||||
{
|
||||
label: gettext('AUTO'),
|
||||
value: 'AUTO',
|
||||
},
|
||||
{
|
||||
options: function () {
|
||||
let optArray = [{
|
||||
label: gettext('ON'),
|
||||
value: 'ON',
|
||||
},
|
||||
{
|
||||
label: gettext('OFF'),
|
||||
value: 'OFF',
|
||||
}];
|
||||
|
||||
if (obj?.top?.nodeInfo?.server?.version >= 140000) {
|
||||
optArray.push({
|
||||
label: gettext('AUTO'),
|
||||
value: 'AUTO',
|
||||
});
|
||||
}
|
||||
],
|
||||
|
||||
return optArray;
|
||||
},
|
||||
disabled: function(state) {
|
||||
if (!obj.isApplicableForVacuum(state) || state.vacuum_full) {
|
||||
state.vacuum_index_cleanup = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user