@@ -204,19 +204,6 @@ const driveFileBrowser: JupyterFrontEndPlugin<void> = {
204204 driveBrowser . node . setAttribute ( 'role' , 'region' ) ;
205205 driveBrowser . node . setAttribute ( 'aria-label' , 'Drive Browser Section' ) ;
206206
207- // instate Drive Browser Panel
208- const drivePanel = new Panel ( ) ;
209- drivePanel . title . icon = driveBrowserIcon ;
210- drivePanel . title . iconClass = 'jp-sideBar-tabIcon' ;
211- drivePanel . title . caption = 'Drive File Browser' ;
212- drivePanel . id = 'Drive-Browser-Panel' ;
213-
214- app . shell . add ( drivePanel , 'left' , { rank : 102 } ) ;
215- drivePanel . addWidget ( driveBrowser ) ;
216- if ( restorer ) {
217- restorer . add ( drivePanel , 'drive-sidepanel' ) ;
218- }
219-
220207 void Private . restoreBrowser ( driveBrowser , commands , router , tree , labShell ) ;
221208
222209 toolbarRegistry . addFactory (
@@ -259,6 +246,19 @@ const driveFileBrowser: JupyterFrontEndPlugin<void> = {
259246 translator
260247 )
261248 ) ;
249+
250+ // instate Drive Browser Panel
251+ const drivePanel = new Panel ( ) ;
252+ drivePanel . title . icon = driveBrowserIcon ;
253+ drivePanel . title . iconClass = 'jp-sideBar-tabIcon' ;
254+ drivePanel . title . caption = 'Drive File Browser' ;
255+ drivePanel . id = 'Drive-Browser-Panel' ;
256+
257+ app . shell . add ( drivePanel , 'left' , { rank : 102 , type : 'File Browser' } ) ;
258+ drivePanel . addWidget ( driveBrowser ) ;
259+ if ( restorer ) {
260+ restorer . add ( drivePanel , 'drive-sidepanel' ) ;
261+ }
262262 }
263263} ;
264264
0 commit comments