-
-
- {this.canvasEle = ele?.ref?.current;}} engine={this.diagram.getEngine()} />
-
+
+
+
+ {this.onSaveDiagram();}} title={gettext('Save project')}
+ shortcut={this.state.preferences.save_project} disabled={!this.state.dirty}/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {this.canvasEle = ele?.ref?.current;}} engine={this.diagram.getEngine()} />
+
>
);
}
@@ -892,4 +892,5 @@ BodyWidget.propTypes = {
pgWindow: PropTypes.object.isRequired,
pgAdmin: PropTypes.object.isRequired,
alertify: PropTypes.object.isRequired,
+ panel: PropTypes.object,
};
diff --git a/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/ToolBar.jsx b/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/ToolBar.jsx
index fe4280af3..655a4aee9 100644
--- a/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/ToolBar.jsx
+++ b/web/pgadmin/tools/erd/static/js/erd_tool/ui_components/ToolBar.jsx
@@ -28,6 +28,7 @@ const BaseIconButton = forwardRef((props, ref)=>{
);
});
+BaseIconButton.displayName = 'BaseIconButton';
BaseIconButton.propTypes = {
icon: PropTypes.string,
@@ -88,6 +89,7 @@ export const IconButton = forwardRef((props, ref) => {
return ;
}
});
+IconButton.displayName = 'IconButton';
IconButton.propTypes = {
title: PropTypes.string,
@@ -120,6 +122,10 @@ export function ButtonGroup({className, children}) {
ButtonGroup.propTypes = {
className: PropTypes.string,
+ children: PropTypes.oneOfType([
+ PropTypes.arrayOf(PropTypes.node),
+ PropTypes.node
+ ]),
};
/* Toolbar container */
@@ -131,6 +137,10 @@ export default function ToolBar({id, children}) {
);
}
-ButtonGroup.propTypes = {
+ToolBar.propTypes = {
id: PropTypes.string,
+ children: PropTypes.oneOfType([
+ PropTypes.arrayOf(PropTypes.node),
+ PropTypes.node
+ ]),
};