Rename psql TerminalKind enum

This commit is contained in:
artrejo 2022-09-19 14:06:29 -07:00
parent 66ca9c9557
commit fe3e973976
4 changed files with 4 additions and 4 deletions

View File

@ -372,7 +372,7 @@ export enum TerminalKind {
Default = 0,
Mongo = 1,
Cassandra = 2,
PostgreSQL = 3,
Postgres = 3,
}
export interface DataExplorerInputsFrame {

View File

@ -1059,7 +1059,7 @@ export default class Explorer {
title = "Cassandra Shell";
break;
case ViewModels.TerminalKind.PostgreSQL:
case ViewModels.TerminalKind.Postgres:
title = "PSQL Shell";
break;

View File

@ -538,7 +538,7 @@ function createOpenPsqlTerminalButton(container: Explorer): CommandButtonCompone
iconAlt: label,
onCommandClick: () => {
if (useNotebook.getState().isNotebookEnabled) {
container.openNotebookTerminal(ViewModels.TerminalKind.PostgreSQL);
container.openNotebookTerminal(ViewModels.TerminalKind.Postgres);
}
},
commandButtonLabel: label,

View File

@ -95,7 +95,7 @@ export default class TerminalTab extends TabsBase {
endpointSuffix = "cassandra";
break;
case ViewModels.TerminalKind.PostgreSQL:
case ViewModels.TerminalKind.Postgres:
endpointSuffix = "postgresql";
break;