| @@ -42,6 +42,7 @@ const Mail = () => { | |||
| url: apiPath + "/test/send-mail", | |||
| params: { | |||
| email: values.email, | |||
| tempKey: values.tempKey | |||
| }, | |||
| onSuccess: function () { | |||
| 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 ( | |||
| !JSON.parse(localStorage.getItem('userData')).fullenName == "2fi" ? | |||
| <Grid container > | |||
| @@ -103,6 +123,17 @@ const Mail = () => { | |||
| onChange={formik.handleChange} | |||
| /> | |||
| </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> | |||
| <Button | |||
| variant="contained" | |||
| @@ -131,6 +162,22 @@ const Mail = () => { | |||
| </Button> | |||
| </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> | |||
| <Dialog | |||
| open={isResponsPopUp} | |||