mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 06:56:38 +00:00
Rename psql TerminalKind enum
This commit is contained in:
parent
66ca9c9557
commit
fe3e973976
@ -372,7 +372,7 @@ export enum TerminalKind {
|
|||||||
Default = 0,
|
Default = 0,
|
||||||
Mongo = 1,
|
Mongo = 1,
|
||||||
Cassandra = 2,
|
Cassandra = 2,
|
||||||
PostgreSQL = 3,
|
Postgres = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DataExplorerInputsFrame {
|
export interface DataExplorerInputsFrame {
|
||||||
|
@ -1059,7 +1059,7 @@ export default class Explorer {
|
|||||||
title = "Cassandra Shell";
|
title = "Cassandra Shell";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ViewModels.TerminalKind.PostgreSQL:
|
case ViewModels.TerminalKind.Postgres:
|
||||||
title = "PSQL Shell";
|
title = "PSQL Shell";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -538,7 +538,7 @@ function createOpenPsqlTerminalButton(container: Explorer): CommandButtonCompone
|
|||||||
iconAlt: label,
|
iconAlt: label,
|
||||||
onCommandClick: () => {
|
onCommandClick: () => {
|
||||||
if (useNotebook.getState().isNotebookEnabled) {
|
if (useNotebook.getState().isNotebookEnabled) {
|
||||||
container.openNotebookTerminal(ViewModels.TerminalKind.PostgreSQL);
|
container.openNotebookTerminal(ViewModels.TerminalKind.Postgres);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
commandButtonLabel: label,
|
commandButtonLabel: label,
|
||||||
|
@ -95,7 +95,7 @@ export default class TerminalTab extends TabsBase {
|
|||||||
endpointSuffix = "cassandra";
|
endpointSuffix = "cassandra";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ViewModels.TerminalKind.PostgreSQL:
|
case ViewModels.TerminalKind.Postgres:
|
||||||
endpointSuffix = "postgresql";
|
endpointSuffix = "postgresql";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user