File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function getJsonResource(tabID) {
5757 notifyDevtools ( 'status' , 'running ' + xpbHeader ) ;
5858 if ( xhr . status !== 200 ) {
5959 notifyDevtools ( 'error' , 'Solidus JSON status: ' + xhr . status ) ;
60- notifyDevtools ( 'action' , 'shutdown' ) ;
60+ notifyDevtools ( 'action' , 'soft- shutdown' ) ;
6161 return ;
6262 }
6363 if ( xhr . status === 200 ) {
Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ pre.scroll-panel {
102102 background : # 3879d9 ;
103103}
104104
105+ .nav-tabs > li > a [data-toggle = 'none' ] {
106+ display : none;
107+ }
108+
105109.panel-column {
106110 height : 100% ;
107111 position : static;
Original file line number Diff line number Diff line change @@ -37,12 +37,18 @@ function processMainIncomingMessage(msg) {
3737 case 'shutdown' :
3838 destroyInspector ( ) ;
3939 $ ( '#panelTabs a[href="#info"]' ) . tab ( 'show' ) ;
40- var contextPane = document . querySelector ( '#pagecontext' ) ;
41- var cStatus = createAlert ( 'No context. See Info tab.' , '' , 'danger' ) ;
42- contextPane . innerHTML = cStatus ;
40+ $ ( '#panelTabs a[href="#context"]' ) . attr ( 'data-toggle' , 'none' ) ;
41+ $ ( '#panelTabs a[href="#logs"]' ) . attr ( 'data-toggle' , 'none' ) ;
42+ break ;
43+ case 'soft-shutdown' :
44+ destroyInspector ( ) ;
45+ $ ( '#panelTabs a[href="#info"]' ) . tab ( 'show' ) ;
46+ $ ( '#panelTabs a[href="#context"]' ) . attr ( 'data-toggle' , 'none' ) ;
4347 break ;
4448 case 'reload' :
4549 clearAlerts ( ) ;
50+ $ ( '#panelTabs a[href="#context"]' ) . attr ( 'data-toggle' , 'tab' ) ;
51+ $ ( '#panelTabs a[href="#logs"]' ) . attr ( 'data-toggle' , 'tab' ) ;
4652 break ;
4753 default :
4854 }
You can’t perform that action at this time.
0 commit comments