use EmptyState on secrets list
This commit is contained in:
parent
e4a7521231
commit
d72c7db57e
|
@ -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 "" this.filter """
|
||||||
{{#if filterIsFolder}}
|
)
|
||||||
<div class="empty-state-title">
|
(concat
|
||||||
{{#if (eq filter baseKey.id)}}
|
"No folders matching "" this.filter """
|
||||||
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}}
|
||||||
|
|
Loading…
Reference in a new issue