diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json
index f7e4ff8..b5bceed 100644
--- a/public/locales/de/translation.json
+++ b/public/locales/de/translation.json
@@ -85,7 +85,8 @@
},
"select": {
"placeholder": "Wählen Sie einen Gruppentyp",
- "machinePlaceholder": "Wählen Sie eine Maschine"
+ "machinePlaceholder": "Wählen Sie eine Maschine",
+ "valuePlaceholder": "Wählen Sie einen Wert"
},
"form": {
"item": {
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index 45d60b2..7cfd66b 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -85,7 +85,8 @@
},
"select": {
"placeholder": "Select a Group Type",
- "machinePlaceholder": "Select a Machine"
+ "machinePlaceholder": "Select a Machine",
+ "valuePlaceholder": "Select a Value"
},
"form": {
"item": {
diff --git a/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js b/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js
index 0434f3d..13948b6 100644
--- a/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js
+++ b/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js
@@ -9,9 +9,10 @@ import {
Select,
Space,
Tag,
+ Typography,
notification,
} from "antd";
-import { GetUuid, myFetch } from "../../../utils";
+import { AppStyle, Constants, GetUuid, myFetch } from "../../../utils";
import { InfoCircleOutlined } from "@ant-design/icons";
import TextArea from "antd/es/input/TextArea";
import { useTranslation } from "react-i18next";
@@ -19,6 +20,7 @@ import { useWebSocketContext } from "../../../Contexts/WebSocketContext";
import { useGroupTasksContext } from "../../../Contexts/GroupTasksContext";
import { SentMessagesCommands } from "../../../Handlers/WebSocketMessageHandler";
import { useEffect, useRef, useState } from "react";
+import Paragraph from "antd/es/skeleton/Paragraph";
export default function GroupTypeSelectionModal({
isOpen,
@@ -80,7 +82,7 @@ export default function GroupTypeSelectionModal({
if (userSpecifiedGlobalInputs.length > 0) {
for (let i = 0; i < userSpecifiedGlobalInputs.length; i++) {
- if (userSpecifiedGlobalInputs[i].type === "select") {
+ if (userSpecifiedGlobalInputs[i].type === "search") {
foundSelectInputs = foundSelectInputs + 1;
continue;
}
@@ -258,6 +260,41 @@ export default function GroupTypeSelectionModal({
);
}
+export function SelectComponent({ t, globalInput }) {
+ const groupTasksContext = useGroupTasksContext();
+
+ if (globalInput.options === null) {
+ return (
+
+ Options for this input not specified in the index.json
+
+ );
+ }
+
+ return (
+