File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
airflow-core/src/airflow/ui/src/layouts/Nav Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,17 @@ export const SecurityButton = () => {
3939 < NavButton icon = { < FiLock size = "1.75rem" /> } title = { translate ( "nav.security" ) } />
4040 </ Menu . Trigger >
4141 < Menu . Content >
42- { authLinks . extra_menu_items . map ( ( { text } ) => (
43- < Menu . Item asChild key = { text } value = { text } >
44- < Link aria-label = { text } to = { `security/${ text . toLowerCase ( ) . replace ( " " , "-" ) } ` } >
45- { translate ( `security.${ text . toLowerCase ( ) . replace ( " " , "-" ) } ` ) }
46- </ Link >
47- </ Menu . Item >
48- ) ) }
42+ { authLinks . extra_menu_items . map ( ( { text } ) => {
43+ const securityKey = text . toLowerCase ( ) . replace ( " " , "-" ) ;
44+
45+ return (
46+ < Menu . Item asChild key = { text } value = { text } >
47+ < Link aria-label = { text } to = { `security/${ securityKey } ` } >
48+ { translate ( `security.${ securityKey } ` ) }
49+ </ Link >
50+ </ Menu . Item >
51+ ) ;
52+ } ) }
4953 </ Menu . Content >
5054 </ Menu . Root >
5155 ) ;
You can’t perform that action at this time.
0 commit comments