Skip to content

Commit

Permalink
submitter id changes and org level task list update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpanaMajhi committed Dec 5, 2023
1 parent 139fd58 commit 7ec9f8a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/containers/Admin/NewsLetterTemplate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/containers/Organization/OrgLevelTaskList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ const OrgLevelTaskList = () => {
const handleToolbarButtonClick = (key) => {
switch (key) {
case "bulkTaskUpdate":
handleDialogOpen("editTaskDialog");
setIsBulk(true);
// handleDialogOpen("editTaskDialog");
// setIsBulk(true);
break;

case "bulkTaskDelete":
Expand Down Expand Up @@ -1027,7 +1027,7 @@ const OrgLevelTaskList = () => {
/>
)}

{/* {openDialogs.editTaskDialog && (
{openDialogs.editTaskDialog && (
<UpdateBulkTaskDialog
open={openDialogs.editTaskDialog}
handleUserDialogClose={() => handleDialogClose("editTaskDialog")}
Expand All @@ -1037,7 +1037,7 @@ const OrgLevelTaskList = () => {
isBulk={isBulk}
projectId={currentTaskDetails?.project}
/>
)} */}
)}

{openDialogs.previewDialog && (
<PreviewDialog
Expand Down

0 comments on commit 7ec9f8a

Please sign in to comment.