@@ -33,7 +33,7 @@ import { PageConfig, PathExt } from '@jupyterlab/coreutils';
3333import { CommandRegistry } from '@lumino/commands' ;
3434import { Widget } from '@lumino/widgets' ;
3535
36- import { addIcon , driveBrowserIcon , removeIcon } from '../icons' ;
36+ import { driveBrowserIcon , removeIcon } from '../icons' ;
3737import { Drive } from '../contents' ;
3838import { setListingLimit } from '../requests' ;
3939import { CommandIDs } from '../token' ;
@@ -570,37 +570,5 @@ namespace Private {
570570 '#drive-file-browser.jp-SidePanel .jp-DirListing-content .jp-DirListing-item[data-isdir]' ,
571571 rank : 110
572572 } ) ;
573-
574- app . commands . addCommand ( CommandIDs . includeDrive , {
575- isVisible : ( ) => {
576- return browser . model . path === 's3:' ;
577- } ,
578- execute : async ( ) => {
579- return showDialog ( {
580- title : 'Include Drive' ,
581- body : new Private . AddPublicDriveHandler ( drive . name ) ,
582- focusNodeSelector : 'input' ,
583- buttons : [
584- Dialog . cancelButton ( ) ,
585- Dialog . okButton ( {
586- label : 'Add' ,
587- ariaLabel : 'Include Drive'
588- } )
589- ]
590- } ) . then ( async result => {
591- if ( result . value ) {
592- await drive . includeDrive ( result . value ) ;
593- }
594- } ) ;
595- } ,
596- label : 'Include Drive' ,
597- icon : addIcon . bindprops ( { stylesheet : 'menuItem' } )
598- } ) ;
599-
600- app . contextMenu . addItem ( {
601- command : CommandIDs . includeDrive ,
602- selector : '#drive-file-browser.jp-SidePanel .jp-DirListing-content' ,
603- rank : 110
604- } ) ;
605573 }
606574}
0 commit comments