Save multiple query tab histories

This commit is contained in:
Laurent Nguyen
2024-11-04 09:14:42 +01:00
parent e448e8df6b
commit f7dffa4183
9 changed files with 145 additions and 199 deletions

View File

@@ -626,7 +626,13 @@ export default class Collection implements ViewModels.Collection {
}
};
public onNewQueryClick(source: any, event: MouseEvent, queryText?: string) {
public onNewQueryClick(
source: any,
event: MouseEvent,
queryText?: string,
stringsplitterDirection?: "horizontal" | "vertical",
queryViewSizePercent?: number,
) {
const collection: ViewModels.Collection = source.collection || source;
const id = useTabs.getState().getTabs(ViewModels.CollectionTabKind.Query).length + 1;
const title = "Query " + id;
@@ -649,6 +655,8 @@ export default class Collection implements ViewModels.Collection {
queryText: queryText,
partitionKey: collection.partitionKey,
onLoadStartKey: startKey,
stringsplitterDirection,
queryViewSizePercent,
},
{ container: this.container },
),