refactor: API: Add AuthMethodOIDC class to hold static states

This commit is contained in:
Susmitha Girumala committed 2021-06-02 22:22:02 -04:00
1 parent 269c56bf83
commit a7a6bdedf9
8 files changed
+52 -7

No files matched your search

@@ -1,14 +1,14 @@
{{#if @model.isOIDC}}
<Rose::Dropdown
@text='{{concat
(t 'resources.auth-method.actions.change-state')
(t 'resources.auth-method.actions.status')
' : '
(t (concat 'states.auth-method.oidc.states.' @model.attributes.state))
}}'
@dropdownRight={{true}}
as |dropdown|
>
<dropdown.section @title={{t 'resources.auth-method.actions.change-state'}}>
<dropdown.section @title={{t 'resources.auth-method.actions.status'}}>
<Rose::Form as |form|>
<form.radioGroup
@name='theme'
@@ -16,7 +16,7 @@
@changed={{route-action 'changeState'}}
as |radioGroup|
>
{{#each @model.STATES_ENUM as |state|}}
{{#each this.oidcStates as |state|}}
<dropdown.item>
<radioGroup.radio
@label={{t (concat 'states.auth-method.oidc.states.' state)}}