Mark email as mandatory

[MAILPOET-2452]
This commit is contained in:
Pavel Dohnal
2019-12-04 12:48:08 +01:00
committed by Rostislav Wolný
parent 9460006727
commit 4396903719

View File

@@ -45,10 +45,10 @@ const EmailEdit = ({ attributes, setAttributes }) => {
return (
<>
{inspectorControls}
{attributes.labelWithinInput ? (getTextInput(attributes.label)
{attributes.labelWithinInput ? (getTextInput(`${attributes.label} *`)
) : (
<label className="mailpoet_text_label" data-automation-id="editor_email_label" htmlFor="email">
{attributes.label}
{`${attributes.label} *`}
<br />
{getTextInput('')}
</label>