diff --git a/web/pgadmin/static/js/SchemaView/MappedControl.jsx b/web/pgadmin/static/js/SchemaView/MappedControl.jsx index 52bf1d289..e0e0fef8d 100644 --- a/web/pgadmin/static/js/SchemaView/MappedControl.jsx +++ b/web/pgadmin/static/js/SchemaView/MappedControl.jsx @@ -21,7 +21,7 @@ import CustomPropTypes from '../custom_prop_types'; import { SelectRefresh } from '../components/SelectRefresh'; /* Control mapping for form view */ -function MappedFormControlBase({ type, value, id, onChange, className, visible, inputRef, noLabel, onClick, ...props }) { +function MappedFormControlBase({ type, value, id, onChange, className, visible, inputRef, noLabel, onClick, withContainer, controlGridBasis, ...props }) { const name = id; const onTextChange = useCallback((e) => { let val = e; @@ -61,6 +61,7 @@ function MappedFormControlBase({ type, value, id, onChange, className, visible, case 'switch': return onTextChange(e.target.checked, e.target.name)} className={className} + withContainer={withContainer} controlGridBasis={controlGridBasis} {...props} />; case 'checkbox': return + ); @@ -1057,9 +1056,7 @@ FormInputColor.propTypes = { className: CustomPropTypes.className, label: PropTypes.string, helpMessage: PropTypes.string, - testcid: PropTypes.string, - withContainer: PropTypes.bool, - controlGridBasis: PropTypes.number, + testcid: PropTypes.string }; export function PlainString({ controlProps, value }) { diff --git a/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx b/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx index eaea39781..1f876d89d 100644 --- a/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx +++ b/web/pgadmin/tools/erd/static/js/erd_tool/components/ERDTool.jsx @@ -961,7 +961,7 @@ class ERDTool extends React.Component { return ( + fgcolor={this.props.params.fgcolor} title={_.unescape(this.props.params.title)}/> `; diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolComponent.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolComponent.jsx index ad4857c50..350d95753 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolComponent.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolComponent.jsx @@ -95,6 +95,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN connection_status_msg: '', params: { ...params, + title: _.unescape(params.title), is_query_tool: params.is_query_tool == 'true' ? true : false, node_name: retrieveNodeName(selectedNodeInfo), }, @@ -684,6 +685,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN database: { _id: selectedConn.did, label: selectedConn.database_name, + _label: selectedConn.database_name, }, }; diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor_title.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor_title.js index d149e77aa..99efbe45e 100644 --- a/web/pgadmin/tools/sqleditor/static/js/sqleditor_title.js +++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor_title.js @@ -15,7 +15,7 @@ import Notify from '../../../../static/js/helpers/Notifier'; const pgAdmin = pgWindow.pgAdmin; export function getDatabaseLabel(parentData) { - return parentData.database ? parentData.database.label + return parentData.database ? parentData.database._label : parentData.server?.db; }