use EmptyState on secrets list

This commit is contained in:
Matthew Irish 2018-11-15 16:46:25 -06:00
parent e4a7521231
commit d72c7db57e

View file

@ -54,16 +54,11 @@
}}
{{/if}}
{{else}}
<div class="empty-state">
<div class="empty-state-content">
{{#if (eq baseKey.id '')}}
<div class="empty-state-title">
No {{pluralize options.item}} in this backend yet
</div>
<div class="empty-state-message">
Secrets in this backend will be listed here. Add a secret to get started.
</div>
<div class="empty-state-actions">
<EmptyState
@title="No {{pluralize options.item}} in this backend yet"
@message="Secrets in this backend will be listed here. Add a secret to get started."
>
{{#secret-link
mode="create"
secret=''
@ -72,19 +67,20 @@
}}
{{options.create}}
{{/secret-link}}
</div>
</EmptyState>
{{else}}
{{#if filterIsFolder}}
<div class="empty-state-title">
{{#if (eq filter baseKey.id)}}
No {{pluralize options.item}} under <code>{{or filter}}</code>
{{else}}
No folders matching <code>{{filter}}</code>
{{/if}}
</div>
<EmptyState
@title={{if (eq filter baseKey.id)
(concat
"No " (pluralize options.item) " under &quot;" this.filter "&quot;"
)
(concat
"No folders matching &quot;" this.filter "&quot;"
)
}}
/>
{{/if}}
{{/if}}
</div>
</div>
{{/if}}
{{/with}}