Replace all instances of the warning icon with the Structure alert-triangle icon

This commit is contained in:
Michael Lange
2020-10-26 14:52:25 -07:00
parent 42ea096ba4
commit 7423a5b42a
7 changed files with 10 additions and 10 deletions

View File

@@ -155,7 +155,7 @@
<span class="pair" data-test-driver-health>
<span class="term">Drivers</span>
{{#if this.model.unhealthyDrivers.length}}
{{x-icon "warning" class="is-text is-warning"}}
{{x-icon "alert-triangle" class="is-text is-warning"}}
{{this.model.unhealthyDrivers.length}} of {{this.model.detectedDrivers.length}} {{pluralize "driver" this.model.detectedDrivers.length}} unhealthy
{{else}}
All healthy
@@ -197,7 +197,7 @@
<span data-test-force-drain-text class="pair">
<span class="term">Force Drain</span>
{{#if this.model.drainStrategy.isForced}}
{{x-icon "warning" class="is-text is-warning"}} Yes
{{x-icon "alert-triangle" class="is-text is-warning"}} Yes
{{else}}
No
{{/if}}

View File

@@ -1,7 +1,7 @@
<td data-test-indicators class="is-narrow">
{{#if this.allocation.unhealthyDrivers.length}}
<span data-test-icon="unhealthy-driver" class="tooltip text-center" role="tooltip" aria-label="Allocation depends on unhealthy drivers">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{/if}}
{{#if this.allocation.nextAllocation}}

View File

@@ -3,7 +3,7 @@
&hellip;
{{else if this.error}}
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{else}}
<div class="inline-chart tooltip" role="tooltip" aria-label="{{this.formattedStat}} / {{this.formattedReserved}}">

View File

@@ -1,7 +1,7 @@
<td data-test-icon class="is-narrow">
{{#if this.node.unhealthyDrivers.length}}
<span class="tooltip text-center" role="tooltip" aria-label="Client has unhealthy drivers">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{/if}}
</td>

View File

@@ -2,7 +2,7 @@
<td data-test-indicators class="is-narrow">
{{#if this.allocation.unhealthyDrivers.length}}
<span data-test-icon="unhealthy-driver" class="tooltip text-center" role="tooltip" aria-label="Allocation depends on unhealthy drivers">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{/if}}
{{#if this.allocation.nextAllocation}}

View File

@@ -7,7 +7,7 @@
{{/if}}
{{#if @allocation.hasStoppedRescheduling}}
<li class="timeline-note" data-test-stop-warning>
{{x-icon "warning" class="is-warning is-text"}} Nomad has stopped attempting to reschedule this allocation.
{{x-icon "alert-triangle" class="is-warning is-text"}} Nomad has stopped attempting to reschedule this allocation.
</li>
{{/if}}
{{#if (and @allocation.followUpEvaluation.waitUntil (not @allocation.nextAllocation))}}

View File

@@ -1,7 +1,7 @@
<td class="is-narrow">
{{#unless this.task.driverStatus.healthy}}
<span data-test-icon="unhealthy-driver" class="tooltip text-center" aria-label="{{this.task.driver}} is unhealthy">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{/unless}}
</td>
@@ -44,7 +44,7 @@
...
{{else if this.statsError}}
<span class="tooltip text-center" role="tooltip" aria-label="Couldn't collect stats">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{else}}
<div class="inline-chart is-small tooltip" role="tooltip" aria-label="{{this.cpu.used}} / {{this.taskStats.reservedCPU}} MHz">
@@ -64,7 +64,7 @@
...
{{else if this.statsError}}
<span class="tooltip is-small text-center" role="tooltip" aria-label="Couldn't collect stats">
{{x-icon "warning" class="is-warning"}}
{{x-icon "alert-triangle" class="is-warning"}}
</span>
{{else}}
<div class="inline-chart tooltip" role="tooltip" aria-label="{{format-bytes this.memory.used}} / {{this.taskStats.reservedMemory}} MiB">