FIX: Tone down admin dashboard critical problem messaging (#15442)

Keep the title the same as it used to be and only
show the exclamation icon on the critical problems in
the list.
This commit is contained in:
Martin Brennan
2022-01-04 13:00:58 +10:00
committed by GitHub
parent b22450c7a8
commit ed83d7573e
3 changed files with 8 additions and 14 deletions

View File

@@ -1,17 +1,10 @@
{{#if foundProblems}}
<div class="section dashboard-problems">
<div class="section-title">
{{#if highPriorityProblems.length}}
<h2>
{{d-icon "exclamation-triangle"}}
{{i18n "admin.dashboard.critical_problems_found"}}
</h2>
{{else}}
<h2>
{{d-icon "heart"}}
{{i18n "admin.dashboard.problems_found"}}
</h2>
{{/if}}
<h2>
{{d-icon "heart"}}
{{i18n "admin.dashboard.problems_found"}}
</h2>
</div>
<div class="section-body">
@@ -20,7 +13,9 @@
<div class="problem-messages priority-high">
<ul>
{{#each highPriorityProblems as |problem|}}
<li class={{concat "dashboard-problem " "priority-" problem.priority}}>{{html-safe problem.message}}</li>
<li class={{concat "dashboard-problem " "priority-" problem.priority}}>
{{d-icon "exclamation-triangle"}} {{html-safe problem.message}}
</li>
{{/each}}
</ul>
</div>