Merged in release/2021-11-12 (pull request #263)
release/2021-11-12 Approved-by: Patrick Fic
This commit is contained in:
@@ -8685,6 +8685,27 @@
|
|||||||
<folder_node>
|
<folder_node>
|
||||||
<name>validation</name>
|
<name>validation</name>
|
||||||
<children>
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>centermustexist</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>larsplit</name>
|
<name>larsplit</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -7,10 +7,12 @@ import { selectCurrentUser } from "../../redux/user/user.selectors";
|
|||||||
import { GenerateDocument } from "../../utils/RenderTemplate";
|
import { GenerateDocument } from "../../utils/RenderTemplate";
|
||||||
import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component";
|
import DateTimePicker from "../form-date-time-picker/form-date-time-picker.component";
|
||||||
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
|
import LayoutFormRow from "../layout-form-row/layout-form-row.component";
|
||||||
|
import moment from "moment";
|
||||||
|
|
||||||
const mapStateToProps = createStructuredSelector({
|
const mapStateToProps = createStructuredSelector({
|
||||||
currentUser: selectCurrentUser,
|
currentUser: selectCurrentUser,
|
||||||
});
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch) => ({
|
const mapDispatchToProps = (dispatch) => ({
|
||||||
setEmailOptions: (e) => dispatch(setEmailOptions(e)),
|
setEmailOptions: (e) => dispatch(setEmailOptions(e)),
|
||||||
});
|
});
|
||||||
@@ -24,9 +26,20 @@ export function EmailTestComponent({ currentUser, setEmailOptions }) {
|
|||||||
{
|
{
|
||||||
name: values.key,
|
name: values.key,
|
||||||
variables: {
|
variables: {
|
||||||
|
...(values.start
|
||||||
|
? {
|
||||||
|
start: moment(values.start).startOf("day").format("YYYY-MM-DD"),
|
||||||
|
}
|
||||||
|
: {}),
|
||||||
|
...(values.end
|
||||||
|
? { end: moment(values.end).endOf("day").format("YYYY-MM-DD") }
|
||||||
|
: {}),
|
||||||
|
...(values.start
|
||||||
|
? { starttz: moment(values.start).startOf("day") }
|
||||||
|
: {}),
|
||||||
|
...(values.end ? { endtz: moment(values.end).endOf("day") } : {}),
|
||||||
|
|
||||||
...(values.id ? { id: values.id } : {}),
|
...(values.id ? { id: values.id } : {}),
|
||||||
...(values.start ? { start: values.start } : {}),
|
|
||||||
...(values.end ? { end: values.end } : {}),
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -536,6 +536,7 @@
|
|||||||
"save": "Shop configuration saved successfully. "
|
"save": "Shop configuration saved successfully. "
|
||||||
},
|
},
|
||||||
"validation": {
|
"validation": {
|
||||||
|
"centermustexist": "The chosen responsibility center does not exist.",
|
||||||
"larsplit": "Refinish hour split must add up to 1.",
|
"larsplit": "Refinish hour split must add up to 1.",
|
||||||
"useremailmustexist": "This email is not a valid user."
|
"useremailmustexist": "This email is not a valid user."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -536,6 +536,7 @@
|
|||||||
"save": ""
|
"save": ""
|
||||||
},
|
},
|
||||||
"validation": {
|
"validation": {
|
||||||
|
"centermustexist": "",
|
||||||
"larsplit": "",
|
"larsplit": "",
|
||||||
"useremailmustexist": ""
|
"useremailmustexist": ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -536,6 +536,7 @@
|
|||||||
"save": ""
|
"save": ""
|
||||||
},
|
},
|
||||||
"validation": {
|
"validation": {
|
||||||
|
"centermustexist": "",
|
||||||
"larsplit": "",
|
"larsplit": "",
|
||||||
"useremailmustexist": ""
|
"useremailmustexist": ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user