backport of commit 8834e4d16bb08972d4e0561e22dfde4d4536cf1d (#21868)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
This commit is contained in:
parent
6655be126a
commit
7f6d4dc70b
|
@ -60,47 +60,54 @@
|
|||
</Toolbar>
|
||||
|
||||
{{#if (eq this.tab "targets")}}
|
||||
{{#each @model.targets as |target|}}
|
||||
<LinkedBlock
|
||||
class="list-item-row"
|
||||
@disabled={{not target.link}}
|
||||
@params={{union (array target.link) target.linkModels}}
|
||||
data-test-target={{target.title}}
|
||||
>
|
||||
<div class="level is-mobile">
|
||||
<div class="level-left">
|
||||
<div>
|
||||
<Icon @name={{target.icon}} />
|
||||
<span class="has-text-weight-semibold has-text-black">
|
||||
{{target.title}}
|
||||
</span>
|
||||
<div class="has-text-grey is-size-8">
|
||||
<code>
|
||||
{{target.subTitle}}
|
||||
</code>
|
||||
{{#if @model.targets}}
|
||||
{{#each @model.targets as |target|}}
|
||||
<LinkedBlock
|
||||
class="list-item-row"
|
||||
@disabled={{not target.link}}
|
||||
@params={{union (array target.link) target.linkModels}}
|
||||
data-test-target={{target.title}}
|
||||
>
|
||||
<div class="level is-mobile">
|
||||
<div class="level-left">
|
||||
<div>
|
||||
<Icon @name={{target.icon}} />
|
||||
<span class="has-text-weight-semibold has-text-black">
|
||||
{{target.title}}
|
||||
</span>
|
||||
<div class="has-text-grey is-size-8">
|
||||
<code>
|
||||
{{target.subTitle}}
|
||||
</code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{#if target.link}}
|
||||
<div class="level-right is-flex is-paddingless is-marginless">
|
||||
<div class="level-item">
|
||||
<PopupMenu>
|
||||
<nav class="menu" aria-label="Enforcement target more menu">
|
||||
<ul class="menu-list">
|
||||
<li>
|
||||
<LinkTo @route={{target.link}} @models={{target.linkModels}} data-test-target-link={{target.title}}>
|
||||
Details
|
||||
</LinkTo>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</PopupMenu>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if target.link}}
|
||||
<div class="level-right is-flex is-paddingless is-marginless">
|
||||
<div class="level-item">
|
||||
<PopupMenu>
|
||||
<nav class="menu" aria-label="Enforcement target more menu">
|
||||
<ul class="menu-list">
|
||||
<li>
|
||||
<LinkTo @route={{target.link}} @models={{target.linkModels}} data-test-target-link={{target.title}}>
|
||||
Details
|
||||
</LinkTo>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</PopupMenu>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</LinkedBlock>
|
||||
{{/each}}
|
||||
</LinkedBlock>
|
||||
{{/each}}
|
||||
{{else}}
|
||||
<EmptyState
|
||||
@title="No target exists for this enforcement"
|
||||
@message="A target might have been deleted after the enforcement was created."
|
||||
/>
|
||||
{{/if}}
|
||||
{{else if (eq this.tab "methods")}}
|
||||
{{#each this.model.mfa_methods as |method|}}
|
||||
<Mfa::MethodListItem @model={{method}} />
|
||||
|
|
Loading…
Reference in New Issue