Skip to content

Commit ba05f37

Browse files
committed
remove include drive command
1 parent aac52c6 commit ba05f37

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

src/plugins/driveBrowserPlugin.ts

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { PageConfig, PathExt } from '@jupyterlab/coreutils';
3333
import { CommandRegistry } from '@lumino/commands';
3434
import { Widget } from '@lumino/widgets';
3535

36-
import { addIcon, driveBrowserIcon, removeIcon } from '../icons';
36+
import { driveBrowserIcon, removeIcon } from '../icons';
3737
import { Drive } from '../contents';
3838
import { setListingLimit } from '../requests';
3939
import { 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

Comments
 (0)