File tree Expand file tree Collapse file tree
src/datascience-ui/interactive-common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Make Jupyter Server name clickable to select Jupyter server
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
3333 constructor ( prop : IJupyterInfoProps ) {
3434 super ( prop ) ;
3535 this . selectKernel = this . selectKernel . bind ( this ) ;
36+ this . selectServer = this . selectServer . bind ( this ) ;
3637 }
3738
3839 public render ( ) {
@@ -59,11 +60,18 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
5960 maxWidth : getMaxWidth ( displayNameTextSize )
6061 } ;
6162
63+ const ariaDisabled = this . props . isNotebookTrusted === undefined ? false : this . props . isNotebookTrusted ;
6264 return (
6365 < div className = "kernel-status" style = { dynamicFont } >
6466 { this . renderTrustMessage ( ) }
65- < div className = "kernel-status-section kernel-status-server" style = { serverTextWidth } role = "button" >
66- < div className = "kernel-status-text" title = { jupyterServerDisplayName } >
67+ < div className = "kernel-status-section kernel-status-server" style = { serverTextWidth } >
68+ < div
69+ className = "kernel-status-text kernel-status-section-hoverable"
70+ style = { serverTextWidth }
71+ onClick = { this . selectServer }
72+ role = "button"
73+ aria-disabled = { ariaDisabled }
74+ >
6775 { getLocString ( 'DataScience.jupyterServer' , 'Jupyter Server' ) } : { jupyterServerDisplayName }
6876 </ div >
6977 < Image
@@ -153,4 +161,8 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
153161
154162 return res [ 1 ] ;
155163 }
164+
165+ private selectServer ( ) : void {
166+ this . props . selectServer ( ) ;
167+ }
156168}
You can’t perform that action at this time.
0 commit comments