mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-22 10:21:37 +00:00
Fix message por psql terminal
This commit is contained in:
@@ -74,9 +74,8 @@ export class NotebookTerminalComponent extends React.Component<NotebookTerminalC
|
|||||||
this.props.databaseAccount?.properties.mongoEndpoint || this.props.databaseAccount?.properties.documentEndpoint;
|
this.props.databaseAccount?.properties.mongoEndpoint || this.props.databaseAccount?.properties.documentEndpoint;
|
||||||
} else if (StringUtils.endsWith(notebookServerEndpoint, "cassandra")) {
|
} else if (StringUtils.endsWith(notebookServerEndpoint, "cassandra")) {
|
||||||
terminalEndpoint = this.props.databaseAccount?.properties.cassandraEndpoint;
|
terminalEndpoint = this.props.databaseAccount?.properties.cassandraEndpoint;
|
||||||
} else if (StringUtils.endsWith(notebookServerEndpoint, "postgresql ")) {
|
} else if (StringUtils.endsWith(notebookServerEndpoint, "postgresql")) {
|
||||||
terminalEndpoint =
|
return (this.props.databaseAccount?.properties as any).postgresqlEndpoint;
|
||||||
this.props.databaseAccount?.properties.mongoEndpoint || this.props.databaseAccount?.properties.documentEndpoint;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (terminalEndpoint) {
|
if (terminalEndpoint) {
|
||||||
|
|||||||
@@ -109,15 +109,15 @@ export function createStaticCommandBarButtons(
|
|||||||
} else if (btn.commandButtonLabel.indexOf("PSQL") !== -1) {
|
} else if (btn.commandButtonLabel.indexOf("PSQL") !== -1) {
|
||||||
if (!useNotebook.getState().isPhoenixFeatures) {
|
if (!useNotebook.getState().isPhoenixFeatures) {
|
||||||
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.mongoShellTemporarilyDownMsg);
|
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.mongoShellTemporarilyDownMsg);
|
||||||
} else if (btn.commandButtonLabel.indexOf("Open Terminal") !== -1) {
|
}
|
||||||
if (!useNotebook.getState().isPhoenixFeatures) {
|
} else if (btn.commandButtonLabel.indexOf("Open Terminal") !== -1) {
|
||||||
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.temporarilyDownMsg);
|
if (!useNotebook.getState().isPhoenixFeatures) {
|
||||||
}
|
|
||||||
} else if (!useNotebook.getState().isPhoenixNotebooks) {
|
|
||||||
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.temporarilyDownMsg);
|
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.temporarilyDownMsg);
|
||||||
}
|
}
|
||||||
buttons.push(btn);
|
} else if (!useNotebook.getState().isPhoenixNotebooks) {
|
||||||
|
applyNotebooksTemporarilyDownStyle(btn, Constants.Notebook.temporarilyDownMsg);
|
||||||
}
|
}
|
||||||
|
buttons.push(btn);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
23
src/Main.tsx
23
src/Main.tsx
@@ -7,7 +7,6 @@ import { SQLQuickstartTutorial } from "Explorer/Quickstart/Tutorials/SQLQuicksta
|
|||||||
import { useCarousel } from "hooks/useCarousel";
|
import { useCarousel } from "hooks/useCarousel";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import { userContext } from "UserContext";
|
|
||||||
import "../externals/jquery-ui.min.css";
|
import "../externals/jquery-ui.min.css";
|
||||||
import "../externals/jquery-ui.min.js";
|
import "../externals/jquery-ui.min.js";
|
||||||
import "../externals/jquery-ui.structure.min.css";
|
import "../externals/jquery-ui.structure.min.css";
|
||||||
@@ -30,8 +29,6 @@ import "../less/TableStyles/EntityEditor.less";
|
|||||||
import "../less/TableStyles/fulldatatables.less";
|
import "../less/TableStyles/fulldatatables.less";
|
||||||
import "../less/TableStyles/queryBuilder.less";
|
import "../less/TableStyles/queryBuilder.less";
|
||||||
import "../less/tree.less";
|
import "../less/tree.less";
|
||||||
import { CollapsedResourceTree } from "./Common/CollapsedResourceTree";
|
|
||||||
import { ResourceTreeContainer } from "./Common/ResourceTreeContainer";
|
|
||||||
import "./Explorer/Controls/Accordion/AccordionComponent.less";
|
import "./Explorer/Controls/Accordion/AccordionComponent.less";
|
||||||
import "./Explorer/Controls/CollapsiblePanel/CollapsiblePanelComponent.less";
|
import "./Explorer/Controls/CollapsiblePanel/CollapsiblePanelComponent.less";
|
||||||
import { Dialog } from "./Explorer/Controls/Dialog";
|
import { Dialog } from "./Explorer/Controls/Dialog";
|
||||||
@@ -84,26 +81,6 @@ const App: React.FunctionComponent = () => {
|
|||||||
<CommandBar container={explorer} />
|
<CommandBar container={explorer} />
|
||||||
{/* Collections Tree and Tabs - Begin */}
|
{/* Collections Tree and Tabs - Begin */}
|
||||||
<div className="resourceTreeAndTabs">
|
<div className="resourceTreeAndTabs">
|
||||||
{/* Collections Tree - Start */}
|
|
||||||
{userContext.apiType !== "Postgres" && (
|
|
||||||
<div id="resourcetree" data-test="resourceTreeId" className="resourceTree">
|
|
||||||
<div className="collectionsTreeWithSplitter">
|
|
||||||
{/* Collections Tree Expanded - Start */}
|
|
||||||
<ResourceTreeContainer
|
|
||||||
container={explorer}
|
|
||||||
toggleLeftPaneExpanded={toggleLeftPaneExpanded}
|
|
||||||
isLeftPaneExpanded={isLeftPaneExpanded}
|
|
||||||
/>
|
|
||||||
{/* Collections Tree Expanded - End */}
|
|
||||||
{/* Collections Tree Collapsed - Start */}
|
|
||||||
<CollapsedResourceTree
|
|
||||||
toggleLeftPaneExpanded={toggleLeftPaneExpanded}
|
|
||||||
isLeftPaneExpanded={isLeftPaneExpanded}
|
|
||||||
/>
|
|
||||||
{/* Collections Tree Collapsed - End */}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<Tabs explorer={explorer} />
|
<Tabs explorer={explorer} />
|
||||||
</div>
|
</div>
|
||||||
{/* Collections Tree and Tabs - End */}
|
{/* Collections Tree and Tabs - End */}
|
||||||
|
|||||||
Reference in New Issue
Block a user