Skip to content

Commit 7508890

Browse files
MakeilaLunJenkins
authored andcommitted
show 'No connection available' in empty site auth
With no LDAP/SAML connection configured, the sub-selector in the site editor's 'Use the following' authentication connections list rendered completely blank. Supply the SingleChoiceExtended no_elements_text so the existing frontend empty-state branch has something to display. Validation already rejects the empty state and is unchanged. CMK-37784 Change-Id: Ie2fe895eaea52cf5b8ca3dcbc4d7a3ce5f68a5b0
1 parent 3d18605 commit 7508890

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmk/gui/watolib/sites.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ def _editable_connections_form_spec(
506506
parameter_form=SingleChoiceExtended[str](
507507
title=Title("LDAP connection"),
508508
elements=ldap_elements,
509+
no_elements_text=Message("No connection available"),
509510
),
510511
),
511512
]
@@ -528,6 +529,7 @@ def _editable_connections_form_spec(
528529
parameter_form=SingleChoiceExtended[str](
529530
title=Title("SAML connection"),
530531
elements=saml_elements,
532+
no_elements_text=Message("No connection available"),
531533
),
532534
),
533535
"metadata_endpoint": DictElement(

0 commit comments

Comments
 (0)