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, Default = 0,
Mongo = 1, Mongo = 1,
Cassandra = 2, Cassandra = 2,
PostgreSQL = 3, Postgres = 3,
} }
export interface DataExplorerInputsFrame { export interface DataExplorerInputsFrame {

View File

@ -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;

View File

@ -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,

View File

@ -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;