Skip to content

Commit a5215e9

Browse files
committed
change commands visibility
1 parent 6996e99 commit a5215e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/driveBrowserPlugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ namespace Private {
423423
});
424424

425425
app.commands.addCommand(CommandIDs.addPublicDrive, {
426-
isEnabled: () => {
426+
isVisible: () => {
427427
return browser.model.path === 's3:';
428428
},
429429
execute: async () => {
@@ -544,7 +544,7 @@ namespace Private {
544544
});
545545

546546
app.commands.addCommand(CommandIDs.excludeDrive, {
547-
isEnabled: () => {
547+
isVisible: () => {
548548
return browser.model.path === 's3:';
549549
},
550550
execute: () => {
@@ -572,7 +572,7 @@ namespace Private {
572572
});
573573

574574
app.commands.addCommand(CommandIDs.includeDrive, {
575-
isEnabled: () => {
575+
isVisible: () => {
576576
return browser.model.path === 's3:';
577577
},
578578
execute: async () => {

0 commit comments

Comments
 (0)