diff --git a/web/pgadmin/static/js/SchemaView/index.jsx b/web/pgadmin/static/js/SchemaView/index.jsx
index 61c9df561..dc46e1d8a 100644
--- a/web/pgadmin/static/js/SchemaView/index.jsx
+++ b/web/pgadmin/static/js/SchemaView/index.jsx
@@ -447,7 +447,7 @@ function prepareData(val, createMode=false) {
/* If its the dialog */
function SchemaDialogView({
- getInitData, viewHelperProps, loadingText, schema={}, showFooter=true, isTabView=true, ...props}) {
+ getInitData, viewHelperProps, loadingText, schema={}, showFooter=true, isTabView=true, checkDirtyOnEnableSave=false, ...props}) {
const classes = useDialogStyles();
/* Some useful states */
const [dirty, setDirty] = useState(false);
@@ -773,7 +773,7 @@ function SchemaDialogView({
} disabled={!dirty || saving} className={classes.buttonMargin}>
{gettext('Reset')}
-
+
{props.customSaveBtnName ? gettext(props.customSaveBtnName) : gettext('Save')}
@@ -812,6 +812,7 @@ SchemaDialogView.propTypes = {
customSaveBtnIconType: PropTypes.string,
formClassName: CustomPropTypes.className,
Notifier: PropTypes.object,
+ checkDirtyOnEnableSave: PropTypes.bool,
};
const usePropsStyles = makeStyles((theme)=>({
diff --git a/web/pgadmin/tools/sqleditor/static/js/components/dialogs/FilterDialog.jsx b/web/pgadmin/tools/sqleditor/static/js/components/dialogs/FilterDialog.jsx
index 336b47d31..58bf94aa5 100644
--- a/web/pgadmin/tools/sqleditor/static/js/components/dialogs/FilterDialog.jsx
+++ b/web/pgadmin/tools/sqleditor/static/js/components/dialogs/FilterDialog.jsx
@@ -145,6 +145,7 @@ export default function FilterDialog({onClose, onSave}) {
disableDialogHelp={true}
isTabView={false}
formClassName={classes.root}
+ checkDirtyOnEnableSave={true}
/>
>);
}