mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Added empty state handling to email debug tabs
refs. https://github.com/TryGhost/Team/issues/2327 - the lists and tables were completely empty when there was no error or some data was missing
This commit is contained in:
parent
cee94217a8
commit
9b276e6aa2
@ -91,6 +91,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
{{#unless this.permanentFailureData}}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="gh-email-debug-empty-list">No permanent failures.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/unless}}
|
||||||
{{!-- <tr>
|
{{!-- <tr>
|
||||||
<div class="gh-list-data gh-email-debug-col-member">
|
<div class="gh-list-data gh-email-debug-col-member">
|
||||||
<div class="gh-email-debug-member">
|
<div class="gh-email-debug-member">
|
||||||
@ -223,6 +230,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</tr>
|
</tr>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
{{#unless this.temporaryFailureData}}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="gh-email-debug-empty-list">No temporary failures.</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/unless}}
|
||||||
{{!-- <tr>
|
{{!-- <tr>
|
||||||
<div class="gh-list-data gh-email-debug-col-member">
|
<div class="gh-list-data gh-email-debug-col-member">
|
||||||
<div class="gh-email-debug-member">
|
<div class="gh-email-debug-member">
|
||||||
@ -313,6 +327,8 @@
|
|||||||
<div class="gh-list-data gh-email-debug-batch-col-segment">
|
<div class="gh-list-data gh-email-debug-batch-col-segment">
|
||||||
{{#if batch.segment}}
|
{{#if batch.segment}}
|
||||||
<span>{{batch.segment}}</span>
|
<span>{{batch.segment}}</span>
|
||||||
|
{{else}}
|
||||||
|
<div class="dib lightgrey">N/A</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
<div class="gh-list-data gh-email-debug-batch-col-recipients">
|
<div class="gh-list-data gh-email-debug-batch-col-recipients">
|
||||||
@ -320,25 +336,29 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="gh-list-data gh-email-debug-batch-col-details">
|
<div class="gh-list-data gh-email-debug-batch-col-details">
|
||||||
<div class="flex flex-col items-center space-between w100">
|
<div class="flex flex-col items-center space-between w100">
|
||||||
<div class="detailtext">
|
{{#if (or batch.providerId batch.errorStatusCode batch.errorMessage)}}
|
||||||
{{#if batch.providerId}}
|
<div class="detailtext">
|
||||||
<div>Provider id:
|
{{#if batch.providerId}}
|
||||||
<span>
|
<div>Provider id:
|
||||||
{{batch.providerId}}
|
<span>
|
||||||
</span>
|
{{batch.providerId}}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if batch.errorStatusCode}}
|
||||||
|
<div>
|
||||||
|
Failure status code: <span>{{batch.errorStatusCode}}</span>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{#if batch.errorMessage}}
|
||||||
|
<code>{{batch.errorMessage}}</code>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
{{#if batch.errorStatusCode}}
|
|
||||||
<div>
|
|
||||||
Failure status code: <span>{{batch.errorStatusCode}}</span>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
{{#if batch.errorMessage}}
|
{{#if batch.errorMessage}}
|
||||||
<code>{{batch.errorMessage}}</code>
|
<div class="download-icon">{{svg-jar "download" title="Download full failure message"}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
{{else}}
|
||||||
{{#if batch.errorMessage}}
|
<div class="dib lightgrey">N/A</div>
|
||||||
<div class="download-icon">{{svg-jar "download" title="Download full failure message"}}</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3413,3 +3413,10 @@ p.theme-validation-details {
|
|||||||
.gh-email-debug-settings-icon .x path {
|
.gh-email-debug-settings-icon .x path {
|
||||||
stroke: var(--midgrey);
|
stroke: var(--midgrey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gh-email-debug-empty-list {
|
||||||
|
margin: 120px 40px;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.3rem;
|
||||||
|
color: var(--midgrey);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user