mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Port Foreign Data Wrapper, Foreign Server and User Mapping nodes to react. Fixes #6583
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/////////////////////////////////////////////////////////////
|
||||
//
|
||||
// pgAdmin 4 - PostgreSQL Tools
|
||||
//
|
||||
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
||||
// This software is released under the PostgreSQL Licence
|
||||
//
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
import gettext from 'sources/gettext';
|
||||
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
|
||||
|
||||
export default class OptionsSchema extends BaseUISchema {
|
||||
constructor(optionID='option', valueID='value') {
|
||||
super({
|
||||
[optionID]: undefined,
|
||||
[valueID]: undefined,
|
||||
});
|
||||
this.optionID = optionID;
|
||||
this.valueID = valueID;
|
||||
}
|
||||
|
||||
get baseFields() {
|
||||
return [{
|
||||
id: this.optionID, label: gettext('Option'),
|
||||
type: 'text', editable: true, cell: 'text',
|
||||
noEmpty: true, width: 220,
|
||||
},
|
||||
{
|
||||
id: this.valueID, label: gettext('Value'),
|
||||
type: 'text', editable: true, cell: 'text',
|
||||
noEmpty: true, width: 220
|
||||
}];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user