File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
jsapp/js/components/account Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -83,16 +83,19 @@ export default class AccountSidebar extends React.Component<
83
83
</ bem . FormSidebar__label >
84
84
}
85
85
86
- < bem . FormSidebar__label
87
- m = { { selected : this . isSecuritySelected ( ) } }
88
- href = { '#' + ROUTES . SECURITY }
89
- disabled = { ! ( envStore . isReady && envStore . data . mfa_enabled ) }
90
- >
91
- < Icon name = 'lock-alt' size = 'xl' />
92
- < bem . FormSidebar__labelText >
93
- { t ( 'Security' ) }
94
- </ bem . FormSidebar__labelText >
95
- </ bem . FormSidebar__label >
86
+ { /* hide "Security" entirely if nothing there is available */
87
+ envStore . isReady && envStore . data . mfa_enabled &&
88
+ < bem . FormSidebar__label
89
+ m = { { selected : this . isSecuritySelected ( ) } }
90
+ href = { '#' + ROUTES . SECURITY }
91
+ disabled = { ! ( envStore . isReady && envStore . data . mfa_enabled ) }
92
+ >
93
+ < Icon name = 'lock-alt' size = 'xl' />
94
+ < bem . FormSidebar__labelText >
95
+ { t ( 'Security' ) }
96
+ </ bem . FormSidebar__labelText >
97
+ </ bem . FormSidebar__label >
98
+ }
96
99
</ bem . FormSidebar >
97
100
) ;
98
101
}
You can’t perform that action at this time.
0 commit comments