mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
UI: change backends template so that the icon shows in a namespace (#5692)
* change backends template so that the icon shows in a namespace * icons for secret-list and method list in a namespace
This commit is contained in:
parent
8fe7ab3fce
commit
62c981c54b
3 changed files with 6 additions and 21 deletions
|
|
@ -16,7 +16,7 @@
|
|||
</p.top>
|
||||
<p.levelLeft>
|
||||
<h1 class="title is-3">
|
||||
{{i-con glyph=(or (concat "enable/" model.type) "enable/secrets") size=24 class="has-text-grey-light"}}
|
||||
{{i-con glyph=(or (concat "enable/" model.engineType) "enable/secrets") size=24 class="has-text-grey-light"}}
|
||||
{{model.id}}
|
||||
{{#if (eq model.options.version 2)}}
|
||||
<span class="tag">
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
<div>
|
||||
<ToolTip @horizontalPosition="left" as |T|>
|
||||
<T.trigger>
|
||||
<ICon @glyph={{concat "enable/" (or method.type "auth")}} @size=24 @class="has-text-grey-light"/>
|
||||
<ICon @glyph={{concat "enable/" (or method.methodType "auth")}} @size=24 @class="has-text-grey-light"/>
|
||||
</T.trigger>
|
||||
<T.content @class="tool-tip">
|
||||
<div class="box">
|
||||
|
|
@ -34,11 +34,6 @@
|
|||
{{method.path}}
|
||||
</span>
|
||||
<br />
|
||||
{{#if (eq method.methodType 'plugin')}}
|
||||
<span class="tag">
|
||||
{{method.methodType}}: {{method.config.plugin_name}}
|
||||
</span>
|
||||
{{/if}}
|
||||
<code class="has-text-grey is-size-8">
|
||||
{{method.accessor}}
|
||||
</code>
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@
|
|||
<div>
|
||||
<ToolTip @horizontalPosition="left" as |T|>
|
||||
<T.trigger>
|
||||
<ICon @glyph={{concat "enable/" (or backend.type "secrets")}} @size=24 @class="has-text-grey-light"/>
|
||||
<ICon @glyph={{concat "enable/" (or backend.engineType "secrets")}} @size="24" @class="has-text-grey-light" />
|
||||
</T.trigger>
|
||||
<T.content @class="tool-tip">
|
||||
<div class="box">
|
||||
{{backend.type}}
|
||||
{{backend.engineType}}
|
||||
</div>
|
||||
</T.content>
|
||||
</ToolTip>
|
||||
|
|
@ -39,11 +39,6 @@
|
|||
{{backend.path}}
|
||||
{{/link-to}}
|
||||
<br />
|
||||
{{#if (eq backend.type 'plugin')}}
|
||||
<span class="tag">
|
||||
{{backend.type}}: {{backend.config.plugin_name}}
|
||||
</span>
|
||||
{{/if}}
|
||||
<code class="has-text-grey is-size-8">
|
||||
{{#if (eq backend.options.version 2)}}
|
||||
v2
|
||||
|
|
@ -85,21 +80,16 @@
|
|||
<div data-test-secret-path class="has-text-weight-semibold has-text-grey">
|
||||
<ToolTip @horizontalPosition="left" as |T|>
|
||||
<T.trigger>
|
||||
<ICon @glyph={{concat "enable/" (or backend.type "secrets")}} @size=24 @class="has-text-grey-light"/>
|
||||
<ICon @glyph={{concat "enable/" (or backend.engineType "secrets")}} @size=24 @class="has-text-grey-light"/>
|
||||
</T.trigger>
|
||||
<T.content @class="tool-tip">
|
||||
<div class="box">
|
||||
{{backend.type}}
|
||||
{{backend.engineType}}
|
||||
</div>
|
||||
</T.content>
|
||||
</ToolTip>
|
||||
{{backend.path}}
|
||||
</div>
|
||||
{{#if (eq backend.type 'plugin')}}
|
||||
<span class="tag">
|
||||
{{backend.type}}: {{backend.config.plugin_name}}
|
||||
</span>
|
||||
{{/if}}
|
||||
<code class="has-text-grey is-size-8">
|
||||
{{backend.accessor}}
|
||||
</code>
|
||||
|
|
|
|||
Loading…
Reference in a new issue