Add Cassandra Shell back in

This commit is contained in:
Asier Isayas 2024-07-17 11:06:50 -04:00
parent ccf4f8af86
commit 3d367f9f77
2 changed files with 6 additions and 2 deletions

View File

@ -106,7 +106,7 @@ export const createCollectionContextMenuButton = (
onClick: () => {
container.openNotebookTerminal(ViewModels.TerminalKind.Cassandra);
},
label: "Open Cassandra Shell"
label: "Open Cassandra Shell",
});
}

View File

@ -143,7 +143,11 @@ export function createContextCommandBarButtons(
buttons.push(newMongoShellBtn);
}
if (useNotebook.getState().isShellEnabled && !selectedNodeState.isDatabaseNodeOrNoneSelected() && userContext.apiType === "Cassandra") {
if (
useNotebook.getState().isShellEnabled &&
!selectedNodeState.isDatabaseNodeOrNoneSelected() &&
userContext.apiType === "Cassandra"
) {
const label: string = "Open Cassandra Shell";
const newCassandraShellButton: CommandButtonComponentProps = {
iconSrc: HostedTerminalIcon,