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:
Matthew Irish 2018-11-05 17:12:51 -06:00 committed by GitHub
parent 8fe7ab3fce
commit 62c981c54b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 21 deletions

View file

@ -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">

View file

@ -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>

View file

@ -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>