diff --git a/modules/workbenches/modeler/index.ts b/modules/workbenches/modeler/index.ts
index 5980f283..8e090cec 100644
--- a/modules/workbenches/modeler/index.ts
+++ b/modules/workbenches/modeler/index.ts
@@ -20,6 +20,7 @@ import { PatternLinearOperation } from "./features/patternLinear/patternLinear.o
import { PatternRadialOperation } from "./features/patternRadial/patternRadial.operation"
//imports of action type commands
import { GetVolume } from './actions/getVolume/getVolume.action';
+import {GiCubes} from "react-icons/gi";
export const ModelerWorkspace: WorkbenchConfig = {
@@ -55,5 +56,6 @@ export const ModelerWorkspace: WorkbenchConfig = {
"CYLINDER", "BOX", "CONE", "SPHERE", "TORUS", "-",
"HOLE_TOOL", "-", 'GET_VOLUME',
]
- }
+ },
+ icon: GiCubes
}
\ No newline at end of file
diff --git a/modules/workbenches/sheetMetal/index.ts b/modules/workbenches/sheetMetal/index.ts
index 25f73d00..5418fb65 100644
--- a/modules/workbenches/sheetMetal/index.ts
+++ b/modules/workbenches/sheetMetal/index.ts
@@ -1,8 +1,9 @@
-import { WorkbenchConfig } from "cad/workbench/workbenchService";
+import {WorkbenchConfig} from "cad/workbench/workbenchService";
//imports of feature history type commands
-import { smTabOperation } from "./features/smTab/smTab.operation";
-import { smFlangeOperation } from "./features/smFlange/smFlange.operation";
+import {smTabOperation} from "./features/smTab/smTab.operation";
+import {smFlangeOperation} from "./features/smFlange/smFlange.operation";
+import {SiKaufland} from "react-icons/si";
//imports of action type commands
@@ -27,5 +28,6 @@ export const sheetMetalWorkspace: WorkbenchConfig = {
"HOLE_TOOL", "-",
"SM_TAB","SM_FLANGE"
]
- }
+ },
+ icon: SiKaufland
}
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index d3978264..d6524205 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -25,7 +25,7 @@
"react": "^16.13.1",
"react-color": "^2.19.3",
"react-dom": "^16.13.1",
- "react-icons": "^4.2.0",
+ "react-icons": "^4.4.0",
"react-toastify": "^5.5.0",
"sprintf": "0.1.5",
"three": "^0.118.3"
@@ -12046,9 +12046,9 @@
}
},
"node_modules/react-icons": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.2.0.tgz",
- "integrity": "sha512-rmzEDFt+AVXRzD7zDE21gcxyBizD/3NqjbX6cmViAgdqfJ2UiLer8927/QhhrXQV7dEj/1EGuOTPp7JnLYVJKQ==",
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.4.0.tgz",
+ "integrity": "sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg==",
"peerDependencies": {
"react": "*"
}
@@ -25715,9 +25715,9 @@
}
},
"react-icons": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.2.0.tgz",
- "integrity": "sha512-rmzEDFt+AVXRzD7zDE21gcxyBizD/3NqjbX6cmViAgdqfJ2UiLer8927/QhhrXQV7dEj/1EGuOTPp7JnLYVJKQ==",
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.4.0.tgz",
+ "integrity": "sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg==",
"requires": {}
},
"react-is": {
diff --git a/package.json b/package.json
index 5b05f642..55387bef 100644
--- a/package.json
+++ b/package.json
@@ -81,7 +81,7 @@
"react": "^16.13.1",
"react-color": "^2.19.3",
"react-dom": "^16.13.1",
- "react-icons": "^4.2.0",
+ "react-icons": "^4.4.0",
"react-toastify": "^5.5.0",
"sprintf": "0.1.5",
"three": "^0.118.3",
diff --git a/web/app/cad/actions/ActionButtonBehavior.jsx b/web/app/cad/actions/ActionButtonBehavior.jsx
index e35143cf..330f67a1 100644
--- a/web/app/cad/actions/ActionButtonBehavior.jsx
+++ b/web/app/cad/actions/ActionButtonBehavior.jsx
@@ -1,5 +1,6 @@
import React, {useContext} from 'react';
import {AppContext} from "../dom/components/AppContext";
+import {isMenuAction} from "cad/dom/menu/menuPlugin";
export function ActionButtonBehavior({children, actionId}) {
@@ -21,7 +22,16 @@ export function ActionButtonBehavior({children, actionId}) {
'data-action-id': actionId,
onClick: e => {
canceled = true;
- actionService.run(actionId, e);
+ let data;
+ if (isMenuAction(actionId)) {
+ data = {
+ x: e.pageX,
+ y: e.pageY
+ }
+ } else {
+ data = e;
+ }
+ actionService.run(actionId, data);
},
onMouseEnter: e => {
updateCoords(e);
diff --git a/web/app/cad/actions/coreActions.js b/web/app/cad/actions/coreActions.js
index 16dc1a15..473d2af1 100644
--- a/web/app/cad/actions/coreActions.js
+++ b/web/app/cad/actions/coreActions.js
@@ -1,5 +1,6 @@
import * as ActionHelpers from './actionHelpers'
import {AiOutlineExport} from "react-icons/ai";
+import {CurrentWorkbenchIcon} from "cad/workbench/CurrentWorkbenchIcon";
export default [
{
diff --git a/web/app/cad/dom/components/HeadsUpToolbar.jsx b/web/app/cad/dom/components/HeadsUpToolbar.jsx
index 5b2b4114..8a7eeae9 100644
--- a/web/app/cad/dom/components/HeadsUpToolbar.jsx
+++ b/web/app/cad/dom/components/HeadsUpToolbar.jsx
@@ -11,13 +11,12 @@ export const HeadsUpToolbar = connect(streams => combine(
streams.ui.toolbars.headsUpQuickActions).map(([actions, showTitles, quickActions]) => ({actions, showTitles, quickActions})))(
function HeadsUpToolbar({actions, showTitles, quickActions}) {
return