refactor: API: Add AuthMethodOIDC class to hold static states
This commit is contained in:
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)}}
|
||||
|
||||
Reference in new issue
Block a user