open-nomad/ui/app/templates/components/allocation-stat.hbs
Buck Doyle 244157786a
Add explicit this to templates (#8388)
This is the result of running the no-implicit-this-codemod, some manual fixes,
and the addition of a linting rule to prevent future ambiguity.
2020-07-09 15:19:07 -05:00

19 lines
607 B
Handlebars

{{#if this.allocation.isRunning}}
{{#if (and (not this.stat) this.isLoading)}}
…
{{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"}}
</span>
{{else}}
<div class="inline-chart tooltip" role="tooltip" aria-label="{{this.formattedStat}} / {{this.formattedReserved}}">
<progress
class="progress is-small {{this.statClass}}"
value="{{this.stat.percent}}"
max="1">
{{this.stat.percent}}
</progress>
</div>
{{/if}}
{{/if}}