added closed fun after create project and changed label name
This commit is contained in:
parent
cfd3986479
commit
9c6450496e
@ -427,7 +427,7 @@ const ManageEmployee = ({ employeeId, onClosed, IsAllEmployee }) => {
|
|||||||
aria-label=""
|
aria-label=""
|
||||||
>
|
>
|
||||||
<option disabled value="">
|
<option disabled value="">
|
||||||
Select Role
|
Select Organization
|
||||||
</option>
|
</option>
|
||||||
{organzationList?.data
|
{organzationList?.data
|
||||||
.sort((a, b) => a?.name?.localeCompare(b?.name))
|
.sort((a, b) => a?.name?.localeCompare(b?.name))
|
||||||
|
@ -43,7 +43,7 @@ const ManageProjectInfo = ({ project, onClose }) => {
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
const { mutate: UpdateProject, isPending } = useUpdateProject(() => {onClose?.()});
|
const { mutate: UpdateProject, isPending } = useUpdateProject(() => {onClose?.()});
|
||||||
const {mutate:CeateProject,isPending:isCreating}= useCreateProject(()=>onClose?.())
|
const {mutate:CeateProject,isPending:isCreating} = useCreateProject(()=>{onClose?.()})
|
||||||
|
|
||||||
const {
|
const {
|
||||||
register,
|
register,
|
||||||
|
@ -14,7 +14,7 @@ export const useProjectAccess = (projectId) => {
|
|||||||
const canView = useHasUserPermission(VIEW_PROJECTS);
|
const canView = useHasUserPermission(VIEW_PROJECTS);
|
||||||
|
|
||||||
const loading = isLoading || !isFetched;
|
const loading = isLoading || !isFetched;
|
||||||
|
debugger
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (projectId && !loading && !canView) {
|
if (projectId && !loading && !canView) {
|
||||||
showToast("You don't have permission to view project details", "warning");
|
showToast("You don't have permission to view project details", "warning");
|
||||||
|
@ -325,7 +325,7 @@ export const useEmployeeForTaskAssign = (
|
|||||||
|
|
||||||
// -- -------------Mutation-------------------------------
|
// -- -------------Mutation-------------------------------
|
||||||
|
|
||||||
export const useCreateProject = ({ onSuccessCallback }) => {
|
export const useCreateProject = ( onSuccessCallback ) => {
|
||||||
const queryClient = useQueryClient();
|
const queryClient = useQueryClient();
|
||||||
|
|
||||||
return useMutation({
|
return useMutation({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user