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:
Angel Garbarino
2023-07-14 11:02:23 -06:00
committed by GitHub
parent 25a66dd45a
commit 8834e4d16b

View File

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