0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Refined styles for test email

This commit is contained in:
Peter Zimon 2019-11-07 11:20:09 +07:00
parent 61972b01ce
commit 6dbcf96ab0

View file

@ -349,6 +349,7 @@
</button>
</div>
<div>
{{gh-text-input
class="post-setting-email-test"
id="email-test"
@ -358,14 +359,17 @@
input=(action (mut emailTestScratch) value="target.value")
stopEnterKeyDownPropagation=true
data-test-field="email-test"}}
{{unless isValidTestEmail "Please enter a valid email"}}
{{gh-task-button "Send Test Email"
{{#unless isValidTestEmail}}
<div class="error"><p class="response">Please enter a valid email</p></div>
{{/unless}}
{{gh-task-button "Send test email"
task=sendTestEmail
successText="Sent"
successText="Email sent"
runningText="Sending..."
class="gh-btn w-100 mt2 gh-btn-icon"
data-test-send-test-mail=true
}}
</div>
</div>
</form>
</div>