From fe3e9739762467bac01181bca1f72d5024508879 Mon Sep 17 00:00:00 2001 From: artrejo Date: Mon, 19 Sep 2022 14:06:29 -0700 Subject: [PATCH] Rename psql TerminalKind enum --- src/Contracts/ViewModels.ts | 2 +- src/Explorer/Explorer.tsx | 2 +- .../Menus/CommandBar/CommandBarComponentButtonFactory.tsx | 2 +- src/Explorer/Tabs/TerminalTab.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Contracts/ViewModels.ts b/src/Contracts/ViewModels.ts index a041e362e..b08282316 100644 --- a/src/Contracts/ViewModels.ts +++ b/src/Contracts/ViewModels.ts @@ -372,7 +372,7 @@ export enum TerminalKind { Default = 0, Mongo = 1, Cassandra = 2, - PostgreSQL = 3, + Postgres = 3, } export interface DataExplorerInputsFrame { diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index f40de9d10..bc17aad05 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -1059,7 +1059,7 @@ export default class Explorer { title = "Cassandra Shell"; break; - case ViewModels.TerminalKind.PostgreSQL: + case ViewModels.TerminalKind.Postgres: title = "PSQL Shell"; break; diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx index c14dc83c7..cf31e52fb 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx @@ -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, diff --git a/src/Explorer/Tabs/TerminalTab.tsx b/src/Explorer/Tabs/TerminalTab.tsx index 86d8b3f6c..2b2761d06 100644 --- a/src/Explorer/Tabs/TerminalTab.tsx +++ b/src/Explorer/Tabs/TerminalTab.tsx @@ -95,7 +95,7 @@ export default class TerminalTab extends TabsBase { endpointSuffix = "cassandra"; break; - case ViewModels.TerminalKind.PostgreSQL: + case ViewModels.TerminalKind.Postgres: endpointSuffix = "postgresql"; break;