Issues_July_3W #262
@ -23,6 +23,7 @@ import {
|
|||||||
import { refreshData } from "../../../slices/localVariablesSlice";
|
import { refreshData } from "../../../slices/localVariablesSlice";
|
||||||
import GlobalModel from "../../common/GlobalModel";
|
import GlobalModel from "../../common/GlobalModel";
|
||||||
import { useDeleteMasterItem } from "../../../hooks/masterHook/useMaster";
|
import { useDeleteMasterItem } from "../../../hooks/masterHook/useMaster";
|
||||||
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
const WorkItem = ({
|
const WorkItem = ({
|
||||||
workItem,
|
workItem,
|
||||||
@ -31,7 +32,7 @@ const WorkItem = ({
|
|||||||
forWorkArea,
|
forWorkArea,
|
||||||
deleteHandleTask,
|
deleteHandleTask,
|
||||||
}) => {
|
}) => {
|
||||||
// const { projectId } = useParams();
|
// const projectId = useSelector((store)=>store.localVariables.projectId)
|
||||||
const isTaskPlanning = /^\/activities\/task$/.test(location.pathname);
|
const isTaskPlanning = /^\/activities\/task$/.test(location.pathname);
|
||||||
|
|
||||||
const [itemName, setItemName] = useState("");
|
const [itemName, setItemName] = useState("");
|
||||||
@ -239,7 +240,7 @@ const isTaskPlanning = /^\/activities\/task$/.test(location.pathname);
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
{(ManageInfra ||
|
{(ManageInfra ||
|
||||||
(!projectId &&
|
(
|
||||||
ManageAndAssignTak &&
|
ManageAndAssignTak &&
|
||||||
PlannedWork !== CompletedWork)) && (
|
PlannedWork !== CompletedWork)) && (
|
||||||
<td className="text-end align-items-middle border-top">
|
<td className="text-end align-items-middle border-top">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user