Port Foreign Data Wrapper, Foreign Server and User Mapping nodes to react. Fixes #6583

This commit is contained in:
Akshay Joshi
2021-07-10 12:59:20 +05:30
parent 79e1b0c5d8
commit 4b8e655948
20 changed files with 705 additions and 355 deletions

View File

@@ -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
}];
}
}