diff --git a/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js b/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js index b6c91da..84aa2a6 100644 --- a/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js +++ b/src/Pages/GroupTasks/Overview/GroupTypeSelectionModal.js @@ -10,7 +10,11 @@ import { Tag, notification, } from "antd"; -import { WebSocketContext, SentMessagesCommands } from "../../../utils"; +import { + WebSocketContext, + SentMessagesCommands, + GetUuid, +} from "../../../utils"; import { useContext } from "react"; import { InfoCircleOutlined } from "@ant-design/icons"; import TextArea from "antd/es/input/TextArea"; @@ -123,7 +127,7 @@ export default function GroupTypeSelectionModal({ } }); - const rememberId = window.crypto.randomUUID(); + const rememberId = GetUuid(); webSocketContext.StartGroupTasksOpenModalRememberIdRef.current = rememberId; diff --git a/src/utils.js b/src/utils.js index d173d3a..853841c 100644 --- a/src/utils.js +++ b/src/utils.js @@ -15,9 +15,9 @@ export const Constants = { ICON_INFO: "#08c", }, TEXT_EMPTY_PLACEHOLDER: "-/-", - API_ADDRESS: "http://localhost:8080/v1", - STATIC_CONTENT_ADDRESS: "http://localhost:8080/", - WS_ADDRESS: "ws://localhost:8080/ws", + API_ADDRESS: "http://84.118.101.110:58659/api/v1", + STATIC_CONTENT_ADDRESS: "http://84.118.101.110:58659/", + WS_ADDRESS: "ws://84.118.101.110:58659/api/ws", ROUTE_PATHS: { GROUP_TASKS: "/group-tasks", GROUP_TASKS_VIEW: "/group-tasks/", @@ -80,7 +80,11 @@ export const Constants = { This ID is needed because the message is sent to all clients connected to the backend server when a task is locked and unlocked. With this ID the client checks if the respective browser tab of the user is the initiator of the lock. */ -export const GroupTasksStepsLockedAndUserUpdateInputValueRememberId = uuidv4(); +export const GroupTasksStepsLockedAndUserUpdateInputValueRememberId = GetUuid(); + +export function GetUuid() { + return uuidv4(); +} /** * user session