Skip to content

Commit 4885fff

Browse files
committed
show create drive command only at root level
1 parent f68b161 commit 4885fff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/driveBrowserPlugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ namespace Private {
318318
browser: FileBrowser
319319
): void {
320320
app.commands.addCommand(CommandIDs.createNewDrive, {
321+
isVisible: () => {
322+
return browser.model.path === 's3:';
323+
},
321324
execute: async () => {
322325
return showDialog({
323326
title: 'New Drive',

0 commit comments

Comments
 (0)