mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the user should be allowed to set the schema of an extension while creating it. Fixes #6963
This commit is contained in:
@@ -93,14 +93,14 @@ export default class ExtensionsSchema extends BaseUISchema {
|
||||
id: 'schema', label: gettext('Schema'), type: 'select',
|
||||
mode: ['properties', 'create', 'edit'], group: gettext('Definition'),
|
||||
first_empty: true, deps: ['name'],
|
||||
controlProps: { allowClear: false }, editable: false,
|
||||
controlProps: { allowClear: true }, editable: false,
|
||||
options: this.schemaList,
|
||||
disabled: function (state) {
|
||||
/*
|
||||
* enable or disable schema field if model's relocatable
|
||||
* attribute is True or False
|
||||
*/
|
||||
return (!state.relocatable);
|
||||
if (!obj.isNew(state) && !state.relocatable) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user