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:
@@ -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 #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 #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 #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.
|
| `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',
|
type: 'select',
|
||||||
label: gettext('INDEX CLEANUP'),
|
label: gettext('INDEX CLEANUP'),
|
||||||
controlProps: { allowClear: false, width: '100%' },
|
controlProps: { allowClear: false, width: '100%' },
|
||||||
options: [
|
options: function () {
|
||||||
{
|
let optArray = [{
|
||||||
label: gettext('AUTO'),
|
|
||||||
value: 'AUTO',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: gettext('ON'),
|
label: gettext('ON'),
|
||||||
value: 'ON',
|
value: 'ON',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: gettext('OFF'),
|
label: gettext('OFF'),
|
||||||
value: 'OFF',
|
value: 'OFF',
|
||||||
|
}];
|
||||||
|
|
||||||
|
if (obj?.top?.nodeInfo?.server?.version >= 140000) {
|
||||||
|
optArray.push({
|
||||||
|
label: gettext('AUTO'),
|
||||||
|
value: 'AUTO',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
],
|
|
||||||
|
return optArray;
|
||||||
|
},
|
||||||
disabled: function(state) {
|
disabled: function(state) {
|
||||||
if (!obj.isApplicableForVacuum(state) || state.vacuum_full) {
|
if (!obj.isApplicableForVacuum(state) || state.vacuum_full) {
|
||||||
state.vacuum_index_cleanup = undefined;
|
state.vacuum_index_cleanup = undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user