From 7ec9f8a6e64ba7f43d3382d63794430de08523bb Mon Sep 17 00:00:00 2001 From: AlpanaMajhi Date: Tue, 5 Dec 2023 23:53:07 +0530 Subject: [PATCH] submitter id changes and org level task list update --- src/containers/Admin/NewsLetterTemplate.jsx | 5 +++-- src/containers/Organization/OrgLevelTaskList.jsx | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/containers/Admin/NewsLetterTemplate.jsx b/src/containers/Admin/NewsLetterTemplate.jsx index d2997131..b6efa165 100644 --- a/src/containers/Admin/NewsLetterTemplate.jsx +++ b/src/containers/Admin/NewsLetterTemplate.jsx @@ -6,6 +6,7 @@ import CloudUploadIcon from '@mui/icons-material/CloudUpload'; import { styled } from '@mui/material/styles'; import NewsletterPreview from "redux/actions/api/Admin/NewsLetterPreview"; import clearTemplatePreview from "redux/actions/api/Admin/ClearTemplatePreview"; +import getLocalStorageData from "utils/getLocalStorageData"; const VisuallyHiddenInput = styled('input')({ clip: 'rect(0 0 0 0)', @@ -44,7 +45,7 @@ const NewsLetter = () => { const handleTemplateSubmit = () => { const payload = { - submitter_id: 1, + submitter_id: getLocalStorageData("userData").id, content: selectedTemplate !== 3 ? [templateInfo?.[selectedTemplate]] : templateInfo?.[selectedTemplate], category: "NEW_FEATURE", template_id: selectedTemplate @@ -55,7 +56,7 @@ const NewsLetter = () => { const handleTemplatePreview = () => { const payload = { - submitter_id: 1, + submitter_id: getLocalStorageData("userData").id, content: selectedTemplate !== 3 ? [templateInfo?.[selectedTemplate]] : templateInfo?.[selectedTemplate], category: "NEW_FEATURE", template_id: selectedTemplate diff --git a/src/containers/Organization/OrgLevelTaskList.jsx b/src/containers/Organization/OrgLevelTaskList.jsx index 0e8df9ff..a00b47b5 100644 --- a/src/containers/Organization/OrgLevelTaskList.jsx +++ b/src/containers/Organization/OrgLevelTaskList.jsx @@ -762,8 +762,8 @@ const OrgLevelTaskList = () => { const handleToolbarButtonClick = (key) => { switch (key) { case "bulkTaskUpdate": - handleDialogOpen("editTaskDialog"); - setIsBulk(true); + // handleDialogOpen("editTaskDialog"); + // setIsBulk(true); break; case "bulkTaskDelete": @@ -1027,7 +1027,7 @@ const OrgLevelTaskList = () => { /> )} - {/* {openDialogs.editTaskDialog && ( + {openDialogs.editTaskDialog && ( handleDialogClose("editTaskDialog")} @@ -1037,7 +1037,7 @@ const OrgLevelTaskList = () => { isBulk={isBulk} projectId={currentTaskDetails?.project} /> - )} */} + )} {openDialogs.previewDialog && (