mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 18:01:39 +00:00
Mongo Shell Fixes (#738)
* initial commit for mongo shell refactor * multile tabs for terminals * added notebooks enabled check * added vnet check * minor edits * removed console log * fixes * hide main 'open mongo shell' button * addressed PR comments * Added check for iprules and other fixes * Updated snapshot * addressed PR comments * format errors fixed
This commit is contained in:
committed by
GitHub
parent
dce52f848c
commit
ae76fb0258
@@ -73,9 +73,13 @@ export class ResourceTreeContextMenuButtonFactory {
|
||||
iconSrc: HostedTerminalIcon,
|
||||
onClick: () => {
|
||||
const selectedCollection: ViewModels.Collection = container.findSelectedCollection();
|
||||
selectedCollection && selectedCollection.onNewMongoShellClick();
|
||||
if (container.isShellEnabled()) {
|
||||
container.openNotebookTerminal(ViewModels.TerminalKind.Mongo);
|
||||
} else {
|
||||
selectedCollection && selectedCollection.onNewMongoShellClick();
|
||||
}
|
||||
},
|
||||
label: "New Shell",
|
||||
label: container.isShellEnabled() ? "Open Mongo Shell" : "New Shell",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user