chore: 🤖 authenticate form should show name or type in tabs

This commit is contained in:
Randall Morey committed 2021-01-06 14:30:14 -05:00
1 parent 8e3551ddae
commit 9315eada55
1 file changed
+5 -1
@@ -29,7 +29,11 @@
<Rose::Nav::Tabs as |nav|>
{{#each @model.authMethods as |authMethod|}}
<nav.link @route="scopes.scope.authenticate.method" @model={{authMethod.id}}>
{{t (concat "resources.auth-method.types." authMethod.type)}}
{{#if authMethod.name}}
{{authMethod.name}}
{{else}}
{{t (concat "resources.auth-method.types." authMethod.type)}}
{{/if}}
</nav.link>
{{/each}}
</Rose::Nav::Tabs>