open-vault/ui/app/templates/components/mfa/method-list-item.hbs
Jordan Reimer 5b1172ad7b
MFA method acceptance tests (#15665)
* adds acceptance tests for mfa config login enforcement workflows

* adds acceptance tests for mfa config method workflows

* reverts masked-input test selector changes

* fixes test failures
2022-05-27 14:49:44 -06:00

55 lines
1.6 KiB
Handlebars

<LinkedBlock
class="list-item-row"
@params={{array "vault.cluster.access.mfa.methods.method" @model.id}}
data-test-mfa-method-list-item={{@model.id}}
>
<div class="level is-mobile">
<div class="level-left">
<div class="is-flex-row">
<Icon @size="24" @name={{@model.type}} class="has-text-grey" data-test-mfa-method-list-icon={{@model.type}} />
<div>
<span class="has-text-weight-semibold has-text-black">
{{@model.name}}
</span>
<span class="tag has-left-margin-xs">
{{@model.id}}
</span>
<div class="has-top-margin-xs">
<code class="is-size-9">
Namespace:
{{@model.namespace_id}}
</code>
</div>
</div>
</div>
</div>
<div class="level-right is-flex is-paddingless is-marginless">
<div class="level-item">
<PopupMenu>
<nav class="menu">
<ul class="menu-list">
<li>
<LinkTo
@route="vault.cluster.access.mfa.methods.method"
@model={{@model.id}}
data-test-mfa-method-menu-link="details"
>
Details
</LinkTo>
</li>
<li>
<LinkTo
@route="vault.cluster.access.mfa.methods.method.edit"
@model={{@model.id}}
data-test-mfa-method-menu-link="edit"
>
Edit
</LinkTo>
</li>
</ul>
</nav>
</PopupMenu>
</div>
</div>
</div>
</LinkedBlock>