Added default emails to email tester.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Form, Input, Switch } from "antd";
|
import { Button, Form, Input, Select, Switch } from "antd";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
@@ -27,7 +27,9 @@ export function EmailTestComponent({ currentUser, setEmailOptions }) {
|
|||||||
id: values.id,
|
id: values.id,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{},
|
{
|
||||||
|
to: values.to,
|
||||||
|
},
|
||||||
values.email ? "e" : "p"
|
values.email ? "e" : "p"
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -39,7 +41,25 @@ export function EmailTestComponent({ currentUser, setEmailOptions }) {
|
|||||||
autoComplete={"off"}
|
autoComplete={"off"}
|
||||||
layout="vertical"
|
layout="vertical"
|
||||||
form={form}
|
form={form}
|
||||||
|
initialValues={{
|
||||||
|
to: [
|
||||||
|
"allan.carr@thinkimex.com",
|
||||||
|
"allanlcarr@outlook.com",
|
||||||
|
"allanlcarr@icloud.com",
|
||||||
|
],
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
|
<Form.Item
|
||||||
|
name="to"
|
||||||
|
label="Recipients"
|
||||||
|
rules={[
|
||||||
|
{
|
||||||
|
type: "array",
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
>
|
||||||
|
<Select mode="tags" tokenSeparators={[",", ";"]} />
|
||||||
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="key"
|
name="key"
|
||||||
label="Template Key"
|
label="Template Key"
|
||||||
|
|||||||
Reference in New Issue
Block a user