Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jans-cli-tui): LOCK configuration NULL to DISABLED #7256

Merged
merged 2 commits into from Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions jans-cli-tui/cli_tui/plugins/010_auth_server/message.py
Expand Up @@ -31,7 +31,7 @@ def on_page_enter(self) -> None:
_("Message Provider Type"),
name='messageProviderType',
values=[(mtype, mtype) for mtype in self.schema['properties']['messageProviderType']['enum']],
current_value='NULL',
current_value='DISABLED',
jans_help="Message provider Type",
on_selection_changed=self.display_message_provider_type,
style=cli_style.radio_button)
Expand All @@ -47,7 +47,7 @@ def display_message_provider_type(self, rlwidget: RadioList):

save_button = Button(text=_("Save"), handler=self.save)

if provider_type == 'NULL':
if provider_type == 'DISABLED':
widgets = []
self.provider_widgets = []
else:
Expand Down Expand Up @@ -93,7 +93,7 @@ async def provider_coroutine(pcli_args):
else:
self.data = response.json()

if provider_type != 'NULL':
if provider_type != 'DISABLED':
data = {}
for widget in self.provider_widgets:
item_data = self.get_item_data(widget)
Expand Down Expand Up @@ -121,7 +121,7 @@ async def coroutine():
common_data.app.show_message(common_strings.error, str(e), tobefocused=self.main_container)
return

self.message_provider_type_widget.me.current_value = self.data.get('messageProviderType', 'NULL')
self.message_provider_type_widget.me.current_value = self.data.get('messageProviderType', 'DISABLED')
self.display_message_provider_type(self.message_provider_type_widget.me)

asyncio.ensure_future(coroutine())
Expand Down