2021-06-02 14:59:31 +00:00
|
|
|
{{#if (and @item.updatePath.canRead (not this.isBuiltin))}}
|
2020-09-17 19:08:06 +00:00
|
|
|
{{#linked-block
|
|
|
|
"vault.cluster.secrets.backend.show"
|
2021-06-02 14:59:31 +00:00
|
|
|
@itemPath
|
2020-09-17 19:08:06 +00:00
|
|
|
class="list-item-row"
|
2021-06-02 14:59:31 +00:00
|
|
|
data-test-secret-link=@itemPath
|
2020-09-17 19:08:06 +00:00
|
|
|
encode=true
|
2021-06-02 14:59:31 +00:00
|
|
|
queryParams=(secret-query-params @backendType)
|
2020-09-17 19:08:06 +00:00
|
|
|
}}
|
|
|
|
<div class="columns is-mobile">
|
|
|
|
<div class="column is-10">
|
|
|
|
<SecretLink
|
|
|
|
@mode="show"
|
2021-06-02 14:59:31 +00:00
|
|
|
@secret={{@itemPath}}
|
|
|
|
@queryParams={{query-params type=@modelType}}
|
2020-09-17 19:08:06 +00:00
|
|
|
@class="has-text-black has-text-weight-semibold">
|
|
|
|
<Icon
|
|
|
|
@glyph='file-outline'
|
|
|
|
@class="has-text-grey-light"/>
|
2021-06-02 14:59:31 +00:00
|
|
|
{{if (eq @item.id ' ') '(self)' (or @item.keyWithoutParent @item.id)}}
|
2020-09-17 19:08:06 +00:00
|
|
|
</SecretLink>
|
|
|
|
</div>
|
|
|
|
<div class="column has-text-right">
|
2021-06-02 14:59:31 +00:00
|
|
|
{{#if (or @item.updatePath.canRead @item.updatePath.canUpdate)}}
|
2020-09-17 19:08:06 +00:00
|
|
|
<PopupMenu name="secret-menu">
|
|
|
|
<nav class="menu">
|
|
|
|
<ul class="menu-list">
|
2021-06-02 14:59:31 +00:00
|
|
|
{{#if @item.updatePath.canRead}}
|
2020-09-17 19:08:06 +00:00
|
|
|
<li class="action">
|
|
|
|
<SecretLink
|
|
|
|
@mode="show"
|
2021-06-02 14:59:31 +00:00
|
|
|
@secret={{@itemPath}}
|
2020-09-17 19:08:06 +00:00
|
|
|
@class="has-text-black has-text-weight-semibold">
|
|
|
|
Details
|
|
|
|
</SecretLink>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2021-06-02 14:59:31 +00:00
|
|
|
{{#if @item.updatePath.canUpdate}}
|
2020-09-17 19:08:06 +00:00
|
|
|
<li class="action">
|
|
|
|
<SecretLink
|
|
|
|
@mode="edit"
|
2021-06-02 14:59:31 +00:00
|
|
|
@secret={{@itemPath}}
|
2020-09-17 19:08:06 +00:00
|
|
|
@class="has-text-black has-text-weight-semibold">
|
|
|
|
Edit
|
|
|
|
</SecretLink>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</PopupMenu>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/linked-block}}
|
|
|
|
{{else}}
|
|
|
|
<div class="list-item-row" data-test-view-only-list-item>
|
|
|
|
<div class="columns is-mobile">
|
|
|
|
<div class="column is-12 has-text-grey has-text-weight-semibold">
|
|
|
|
<Icon
|
|
|
|
@glyph='file-outline'
|
|
|
|
@class="has-text-grey-light"/>
|
2021-06-02 14:59:31 +00:00
|
|
|
{{#if this.isBuiltin}}
|
2020-09-21 20:36:07 +00:00
|
|
|
<ToolTip
|
|
|
|
@verticalPosition="above"
|
|
|
|
@horizontalPosition="left"
|
|
|
|
as |T|>
|
|
|
|
<T.trigger @tabindex=false>
|
2021-06-02 14:59:31 +00:00
|
|
|
{{@item.id}}
|
2020-09-21 20:36:07 +00:00
|
|
|
</T.trigger>
|
|
|
|
<T.content @class="tool-tip">
|
|
|
|
<div class="box">
|
2021-06-02 14:59:31 +00:00
|
|
|
This is a built-in HashiCorp {{@itemType}}. It can't be viewed or edited.
|
2020-09-21 20:36:07 +00:00
|
|
|
</div>
|
|
|
|
</T.content>
|
|
|
|
</ToolTip>
|
|
|
|
{{else}}
|
2021-06-02 14:59:31 +00:00
|
|
|
{{@item.id}}
|
2020-09-21 20:36:07 +00:00
|
|
|
{{/if}}
|
2020-09-17 19:08:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-06-02 14:59:31 +00:00
|
|
|
|