ui: minor fixes

This commit is contained in:
Luiz Aoqui 2021-11-05 12:55:54 -04:00
parent 38791ad142
commit a45ef5d47f
No known key found for this signature in database
GPG key ID: 29F459C0D9CBB573
2 changed files with 18 additions and 16 deletions

View file

@ -4,7 +4,7 @@
<progress
data-test-current-value
class="progress {{@chartClass}} is-small"
value="{{@percent}}"
value="{{or @percent 0}}"
max="1">
{{@percent}}
</progress>

View file

@ -470,23 +470,25 @@
@attributePairs={{this.model.attributes.structured}}
@class="attributes-table" />
</div>
<div class="boxed-section-head">
Meta
</div>
{{#if this.model.meta.structured}}
<div class="boxed-section-body is-full-bleed">
<AttributesTable
data-test-meta
@attributePairs={{this.model.meta.structured}}
@class="attributes-table" />
<div class="boxed-section">
<div class="boxed-section-head">
Meta
</div>
{{else}}
<div class="boxed-section-body">
<div data-test-empty-meta-message class="empty-message">
<h3 class="empty-message-headline">No Meta Attributes</h3>
<p class="empty-message-body">This client is configured with no meta attributes.</p>
{{#if this.model.meta.structured}}
<div class="boxed-section-body is-full-bleed">
<AttributesTable
data-test-meta
@attributePairs={{this.model.meta.structured}}
@class="attributes-table" />
</div>
</div>
{{/if}}
{{else}}
<div class="boxed-section-body">
<div data-test-empty-meta-message class="empty-message">
<h3 class="empty-message-headline">No Meta Attributes</h3>
<p class="empty-message-body">This client is configured with no meta attributes.</p>
</div>
</div>
{{/if}}
</div>
</section>