From 624f2fb5a59548b5390a2f379064d5454657da80 Mon Sep 17 00:00:00 2001 From: Laurent Nguyen Date: Thu, 14 Nov 2024 16:29:06 +0100 Subject: [PATCH] Fix typo --- src/Contracts/ViewModels.ts | 6 +++--- src/Explorer/Tabs/MongoQueryTab/MongoQueryTab.tsx | 2 +- src/Explorer/Tabs/QueryTab/QueryTab.tsx | 4 ++-- src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx | 4 ++-- src/Explorer/Tree/Collection.ts | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Contracts/ViewModels.ts b/src/Contracts/ViewModels.ts index fef1d62ef..4c54e6876 100644 --- a/src/Contracts/ViewModels.ts +++ b/src/Contracts/ViewModels.ts @@ -119,7 +119,7 @@ export interface CollectionBase extends TreeNode { source: any, event?: MouseEvent, queryText?: string, - stringsplitterDirection?: "horizontal" | "vertical", + splitterDirection?: "horizontal" | "vertical", queryViewSizePercent?: number, ): void; expandCollection(): void; @@ -159,7 +159,7 @@ export interface Collection extends CollectionBase { source: any, event?: MouseEvent, queryText?: string, - stringsplitterDirection?: "horizontal" | "vertical", + splitterDirection?: "horizontal" | "vertical", queryViewSizePercent?: number, ): void; onNewMongoShellClick(): void; @@ -321,7 +321,7 @@ export interface QueryTabOptions extends TabOptions { partitionKey?: DataModels.PartitionKey; queryText?: string; resourceTokenPartitionKey?: string; - stringsplitterDirection?: "horizontal" | "vertical"; + splitterDirection?: "horizontal" | "vertical"; queryViewSizePercent?: number; } diff --git a/src/Explorer/Tabs/MongoQueryTab/MongoQueryTab.tsx b/src/Explorer/Tabs/MongoQueryTab/MongoQueryTab.tsx index 3062ba7f7..22e50e1c8 100644 --- a/src/Explorer/Tabs/MongoQueryTab/MongoQueryTab.tsx +++ b/src/Explorer/Tabs/MongoQueryTab/MongoQueryTab.tsx @@ -29,7 +29,7 @@ export class NewMongoQueryTab extends NewQueryTab { tabsBaseInstance: this, queryText: this.queryText, partitionKey: this.partitionKey, - stringsplitterDirection: options.stringsplitterDirection, + splitterDirection: options.splitterDirection, queryViewSizePercent: options.queryViewSizePercent, container: this.mongoQueryTabProps.container, onTabAccessor: (instance: ITabAccessor): void => { diff --git a/src/Explorer/Tabs/QueryTab/QueryTab.tsx b/src/Explorer/Tabs/QueryTab/QueryTab.tsx index 91e37e9c1..cb9864250 100644 --- a/src/Explorer/Tabs/QueryTab/QueryTab.tsx +++ b/src/Explorer/Tabs/QueryTab/QueryTab.tsx @@ -42,7 +42,7 @@ export class NewQueryTab extends TabsBase { tabsBaseInstance: this, queryText: options.queryText, partitionKey: this.partitionKey, - stringsplitterDirection: options.stringsplitterDirection, + splitterDirection: options.splitterDirection, queryViewSizePercent: options.queryViewSizePercent, container: this.props.container, onTabAccessor: (instance: ITabAccessor): void => { @@ -74,7 +74,7 @@ export class NewQueryTab extends TabsBase { // set initial state this.iQueryTabComponentProps.onUpdatePersistedState({ queryText: options.queryText, - splitterDirection: options.stringsplitterDirection, + splitterDirection: options.splitterDirection, queryViewSizePercent: options.queryViewSizePercent, }); } diff --git a/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx b/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx index 627bf8145..aee9d1bcb 100644 --- a/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx +++ b/src/Explorer/Tabs/QueryTab/QueryTabComponent.tsx @@ -93,7 +93,7 @@ export interface IQueryTabComponentProps { copilotEnabled?: boolean; isSampleCopilotActive?: boolean; copilotStore?: Partial; - stringsplitterDirection?: "horizontal" | "vertical"; + splitterDirection?: "horizontal" | "vertical"; queryViewSizePercent?: number; onUpdatePersistedState: (state: { queryText: string; @@ -182,7 +182,7 @@ class QueryTabComponentImpl extends React.Component