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,37 +54,33 @@
}} }}
{{/if}} {{/if}}
{{else}} {{else}}
<div class="empty-state"> {{#if (eq baseKey.id '')}}
<div class="empty-state-content"> <EmptyState
{{#if (eq baseKey.id '')}} @title="No {{pluralize options.item}} in this backend yet"
<div class="empty-state-title"> @message="Secrets in this backend will be listed here. Add a secret to get started."
No {{pluralize options.item}} in this backend yet >
</div> {{#secret-link
<div class="empty-state-message"> mode="create"
Secrets in this backend will be listed here. Add a secret to get started. secret=''
</div> queryParams=(query-params initialKey=(or filter baseKey.id))
<div class="empty-state-actions"> class="link"
{{#secret-link }}
mode="create" {{options.create}}
secret='' {{/secret-link}}
queryParams=(query-params initialKey=(or filter baseKey.id)) </EmptyState>
class="link" {{else}}
}} {{#if filterIsFolder}}
{{options.create}} <EmptyState
{{/secret-link}} @title={{if (eq filter baseKey.id)
</div> (concat
{{else}} "No " (pluralize options.item) " under &quot;" this.filter "&quot;"
{{#if filterIsFolder}} )
<div class="empty-state-title"> (concat
{{#if (eq filter baseKey.id)}} "No folders matching &quot;" this.filter "&quot;"
No {{pluralize options.item}} under <code>{{or filter}}</code> )
{{else}} }}
No folders matching <code>{{filter}}</code> />
{{/if}} {{/if}}
</div> {{/if}}
{{/if}}
{{/if}}
</div>
</div>
{{/if}} {{/if}}
{{/with}} {{/with}}