Skip to content

Commit

Permalink
optimize: Create a new query window named after the databaseName and …
Browse files Browse the repository at this point in the history
…datasourceName(CodePhiliaX#1049)
shanhexi committed Jan 30, 2024
1 parent 1aa3588 commit 3d53af5
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chat2db-client/src/components/Tabs/index.less
Original file line number Diff line number Diff line change
@@ -179,7 +179,7 @@

.input {
border: 0;
width: 86px;
width: 200px;
flex: 1;
height: 20px;
outline: none;
2 changes: 1 addition & 1 deletion chat2db-client/src/pages/main/workspace/store/console.ts
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ export const createConsole = (params: ICreateConsoleParams) => {
const currentConnectionDetails = useWorkspaceStore.getState().currentConnectionDetails;
const newConsole = {
...params,
name: params.name || 'new console',
name: params.name || `untitled-${params.databaseName || params.schemaName} (@${params.dataSourceName})`,
ddl: params.ddl || '',
status: ConsoleStatus.DRAFT,
operationType: params.operationType || WorkspaceTabType.CONSOLE,

0 comments on commit 3d53af5

Please sign in to comment.