| @@ -42,6 +42,7 @@ const Mail = () => { | |||||
| url: apiPath + "/test/send-mail", | url: apiPath + "/test/send-mail", | ||||
| params: { | params: { | ||||
| email: values.email, | email: values.email, | ||||
| tempKey: values.tempKey | |||||
| }, | }, | ||||
| onSuccess: function () { | onSuccess: function () { | ||||
| setResponsText("Success"); | setResponsText("Success"); | ||||
| @@ -77,6 +78,25 @@ const Mail = () => { | |||||
| }); | }); | ||||
| } | } | ||||
| const testDaily_checkDNStatus=()=>{ | |||||
| HttpUtils.post({ | |||||
| url: apiPath + "/test/daily_checkDNStatus", | |||||
| onSuccess: function () { | |||||
| setResponsText("Success"); | |||||
| setIsResponsPopUp(true); | |||||
| }, | |||||
| onFail: (response) => { | |||||
| setResponsText("Fail: " + response); | |||||
| setIsResponsPopUp(true); | |||||
| }, | |||||
| onError: (error) => { | |||||
| setResponsText("Error: " + error); | |||||
| setIsResponsPopUp(true); | |||||
| } | |||||
| }); | |||||
| } | |||||
| return ( | return ( | ||||
| !JSON.parse(localStorage.getItem('userData')).fullenName == "2fi" ? | !JSON.parse(localStorage.getItem('userData')).fullenName == "2fi" ? | ||||
| <Grid container > | <Grid container > | ||||
| @@ -103,6 +123,17 @@ const Mail = () => { | |||||
| onChange={formik.handleChange} | onChange={formik.handleChange} | ||||
| /> | /> | ||||
| </Stack> | </Stack> | ||||
| <Stack direction="row" justifyContent="flex-end" alignItems="center"> | |||||
| <TextField | |||||
| fullWidth | |||||
| id="tempKey" | |||||
| name="tempKey" | |||||
| type="tempKey" | |||||
| placeholder="tempKey" | |||||
| label="tempKey" | |||||
| onChange={formik.handleChange} | |||||
| /> | |||||
| </Stack> | |||||
| </Grid> | </Grid> | ||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| @@ -131,6 +162,22 @@ const Mail = () => { | |||||
| </Button> | </Button> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} mt={1} style={{ width: '100%', paddingLeft: 64, paddingBottom: 60 }}> | |||||
| <Typography variant="h4" style={{ padding: 8 }}>Set DN Reminder Expect send Date</Typography> | |||||
| <Button | |||||
| variant="contained" | |||||
| onClick={()=>{ | |||||
| testDaily_checkDNStatus(); | |||||
| }} | |||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end', | |||||
| width: 250 | |||||
| }}> | |||||
| Test daily_checkDNStatus | |||||
| </Button> | |||||
| </Grid> | |||||
| <div> | <div> | ||||
| <Dialog | <Dialog | ||||
| open={isResponsPopUp} | open={isResponsPopUp} | ||||