tracker tasks

This commit is contained in:
2023-08-30 17:02:32 +03:00
parent 433fc88f99
commit 5fa069d84d
13 changed files with 307 additions and 145 deletions

View File

@ -21,6 +21,8 @@ import {
urlForLocal,
} from "@utils/helper";
import { useNotification } from "@hooks/useNotification";
import { apiRequest } from "@api/request";
import { getCorrectDate } from "@components/Calendar/calendarHelper";
@ -84,6 +86,7 @@ export const TicketFullScreen = () => {
const [uploadedFile, setUploadedFile] = useState(null);
const [taskFiles, setTaskFiles] = useState([]);
const [acceptModalOpen, setAcceptModalOpen] = useState(false);
const { showNotification } = useNotification();
useEffect(() => {
apiRequest(`/task/get-task?task_id=${ticketId.id}`).then((taskInfo) => {
@ -175,7 +178,13 @@ export const TicketFullScreen = () => {
title: inputsValue.title,
description: inputsValue.description,
},
}).then(() => {});
}).then(() => {
showNotification({
show: true,
text: "Изменения сохранены",
type: "success",
});
});
}
function createComment() {