mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-03 12:07:54 +00:00
Add empty state when there are no MFA enforcement targets (#21783)
* add empty state message for when there are no targets * Update emptystate message * amend
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
</Toolbar>
|
||||
|
||||
{{#if (eq this.tab "targets")}}
|
||||
{{#if @model.targets}}
|
||||
{{#each @model.targets as |target|}}
|
||||
<LinkedBlock
|
||||
class="list-item-row"
|
||||
@@ -101,6 +102,12 @@
|
||||
</div>
|
||||
</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}} />
|
||||
|
||||
Reference in New Issue
Block a user