use EmptyState on secrets list
This commit is contained in:
parent
e4a7521231
commit
d72c7db57e
|
@ -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 "" this.filter """
|
||||
)
|
||||
(concat
|
||||
"No folders matching "" this.filter """
|
||||
)
|
||||
}}
|
||||
/>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
|
|
Loading…
Reference in a new issue