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

@@ -186,7 +186,7 @@ export const InputText = forwardRef(({
changeVal = controlProps.formatter.toRaw(changeVal);
}
onChange && onChange(changeVal);
}
};
let finalValue = (_.isNull(value) || _.isUndefined(value)) ? '' : value;
if(controlProps?.formatter) {
@@ -562,7 +562,7 @@ function getRealValue(options, value, creatable, formatter) {
}
export function InputSelect({
cid, onChange, options, readonly=false, value, controlProps={}, optionsLoaded, optionsReloadBasis, disabled, ...props}) {
cid, onChange, options, readonly=false, value, controlProps={}, optionsLoaded, optionsReloadBasis, disabled, ...props}) {
const [[finalOptions, isLoading], setFinalOptions] = useState([[], true]);
const theme = useTheme();