File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ import Button from '@mui/material/Button'
99
1010function Authenticating ( props ) {
1111 const { i18n, t} = useTranslation ( )
12+ const resetDefaultAuthChoice = ( ) => {
13+ localStorage . setItem ( "opensvc.authChoice" , "" )
14+ window . location . reload ( )
15+ }
16+
1217 return (
1318 < Dialog
1419 open = { true }
@@ -26,6 +31,9 @@ function Authenticating(props) {
2631 < Button onClick = { ( ) => location . reload ( ) } >
2732 { t ( "Reload" ) }
2833 </ Button >
34+ < Button onClick = { resetDefaultAuthChoice } >
35+ { t ( "Reset authentication method" ) }
36+ </ Button >
2937 </ DialogActions >
3038 </ Dialog >
3139 )
Original file line number Diff line number Diff line change @@ -16,8 +16,16 @@ function ObjInstanceStateList(props) {
1616 if ( cstat . monitor === undefined ) {
1717 return null
1818 }
19- var data = cstat . monitor . nodes [ node ] . services . status [ path ]
20- return (
19+ let nodeData = cstat . monitor . nodes [ node ]
20+ if ( nodeData === undefined ) {
21+ return null
22+ }
23+ let data = nodeData . services . status [ path ]
24+ if ( data === undefined ) {
25+ return null
26+ }
27+
28+ return (
2129 < List dense = { true } >
2230 < ObjAvailItem avail = { data . avail } />
2331 < MonitorStatusBadgeItem state = { data . monitor . status } />
You can’t perform that action at this time.
0 commit comments