mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Updated email failure modal with dynamic error
This commit is contained in:
parent
5bedffdc00
commit
82ffc5a967
@ -337,6 +337,29 @@ svg.gh-btn-icon-right {
|
||||
stroke: var(--midgrey);
|
||||
}
|
||||
|
||||
.gh-btn-text,
|
||||
.gh-btn-text:hover {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border: none;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.gh-btn-text span {
|
||||
height: unset;
|
||||
line-height: unset;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.gh-btn-text.regular span {
|
||||
font-size: 1.4rem;
|
||||
color: var(--darkgrey);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
/* Button Variations
|
||||
|
@ -33,6 +33,24 @@
|
||||
|
||||
<div class="modal-body">
|
||||
<p>Your post has been published but the email failed to send. Please check your <LinkTo @route="settings.labs">Mailgun configuration</LinkTo> under Labs → Members if the error persists.</p>
|
||||
<p class="mb0">
|
||||
<button type="button" class="gh-btn gh-btn-text regular" {{action (toggle "errorDetailsOpen" this)}}
|
||||
data-test-toggle-error>
|
||||
{{#if errorDetailsOpen}}
|
||||
{{svg-jar "arrow-down" class="nudge-top--2 w2 h2 fill-darkgrey mr1"}}
|
||||
{{else}}
|
||||
{{svg-jar "arrow-right" class="nudge-top--1 w2 h2 fill-darkgrey mr1"}}
|
||||
{{/if}}
|
||||
<span>Error details</span>
|
||||
</button>
|
||||
</p>
|
||||
|
||||
{{#liquid-if errorDetailsOpen}}
|
||||
<p class="error gh-box gh-box-error mt3 mb3">
|
||||
{{svg-jar "warning"}}
|
||||
{{this.errorMessage}}
|
||||
</p>
|
||||
{{/liquid-if}}
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
|
Loading…
Reference in New Issue
Block a user