Skip to content

Commit

Permalink
UI: change backends template so that the icon shows in a namespace (#…
Browse files Browse the repository at this point in the history
…5692)

* change backends template so that the icon shows in a namespace

* icons for secret-list and method list in a namespace
  • Loading branch information
meirish authored Nov 5, 2018
1 parent 8fe7ab3 commit 62c981c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion ui/app/templates/components/secret-list-header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
7 changes: 1 addition & 6 deletions ui/app/templates/vault/cluster/access/methods.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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>
Expand Down
18 changes: 4 additions & 14 deletions ui/app/templates/vault/cluster/secrets/backends.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 62c981c

Please sign in to comment.