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