🐛 Fixed warnings not visible when uploading theme with fatal errors

refs https://github.com/TryGhost/Team/issues/2393

Small bug if you upload a theme that has fatal errors, in development mode the warnings are not visible.
This commit is contained in:
Simon Backx 2023-01-06 13:54:09 +01:00
parent 7b3712a15b
commit 6593c3e4a6

View File

@ -97,6 +97,19 @@
{{/each}}
</ul>
{{/if}}
{{#if this.validationWarnings}}
<div>
<h2 class="mb0 mt4 f5 fw6">Warnings</h2>
</div>
<ul class="pa0">
{{#each this.validationWarnings as |error|}}
<li class="theme-validation-item theme-warning">
<GhThemeErrorLi @error={{error}} />
</li>
{{/each}}
</ul>
{{/if}}
{{else}}
<GhFileUploader
@url={{this.uploadUrl}}
@ -137,4 +150,4 @@
</div>
</div>
</div>
</div>
</div>