popconfirm
parent
60ce0cbdae
commit
5e36633f02
|
@ -79,7 +79,7 @@ export default function SideMenu({ setUserSession }) {
|
||||||
text={`${
|
text={`${
|
||||||
webSocketTestContext.connectedWebSocketUsersCount
|
webSocketTestContext.connectedWebSocketUsersCount
|
||||||
} ${
|
} ${
|
||||||
webSocketTestContext.connectedWebSocketUsersCount == 1
|
webSocketTestContext.connectedWebSocketUsersCount === 1
|
||||||
? "user"
|
? "user"
|
||||||
: "users"
|
: "users"
|
||||||
} connected`}
|
} connected`}
|
||||||
|
|
|
@ -18,9 +18,7 @@ export default function TaskTypeSelectionModal({
|
||||||
const [currentSelectedModalTaskType, setCurrentSelectedModalTaskType] =
|
const [currentSelectedModalTaskType, setCurrentSelectedModalTaskType] =
|
||||||
useState(null);
|
useState(null);
|
||||||
|
|
||||||
const handleCancel = () => {
|
const handleCancel = () => setIsOpen(false);
|
||||||
setIsOpen(false);
|
|
||||||
};
|
|
||||||
|
|
||||||
const GroupTaskGlobalInputs = ({ taskType }) => {
|
const GroupTaskGlobalInputs = ({ taskType }) => {
|
||||||
if (taskType === "produktionstask1") {
|
if (taskType === "produktionstask1") {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { PlusOutlined } from "@ant-design/icons";
|
import { PlusOutlined, ReloadOutlined } from "@ant-design/icons";
|
||||||
import { Badge, Button, Divider, Space, Table } from "antd";
|
import { Badge, Button, Divider, Popconfirm, Space, Table } from "antd";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import GroupTaskModal from "./GroupTaskModal";
|
import GroupTaskModal from "./GroupTaskModal";
|
||||||
|
@ -105,7 +105,13 @@ function GroupTaskList({ category, dataSource, showModal }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Divider orientation="left">{category}</Divider>
|
<Divider orientation="left">{category}</Divider>
|
||||||
<Space style={{ marginBottom: 16 }}>
|
<Space
|
||||||
|
style={{
|
||||||
|
marginBottom: 16,
|
||||||
|
display: "flex",
|
||||||
|
justifyContent: "space-between",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon={<PlusOutlined />}
|
icon={<PlusOutlined />}
|
||||||
|
@ -113,6 +119,13 @@ function GroupTaskList({ category, dataSource, showModal }) {
|
||||||
>
|
>
|
||||||
New task
|
New task
|
||||||
</Button>
|
</Button>
|
||||||
|
<Popconfirm
|
||||||
|
placement="left"
|
||||||
|
title="Are you sure you want to reload the group?"
|
||||||
|
okText="Yes"
|
||||||
|
>
|
||||||
|
<Button icon={<ReloadOutlined />}>Reload</Button>
|
||||||
|
</Popconfirm>
|
||||||
</Space>
|
</Space>
|
||||||
<Table
|
<Table
|
||||||
columns={columns}
|
columns={columns}
|
||||||
|
|
Loading…
Reference in New Issue