feat(structure): keep newly created tables open for editing
This commit is contained in:
18 files changed
+476
-10
No files matched your search
@@ -2865,7 +2865,7 @@ defineExpose({
|
||||
<div class="flex-1 min-h-0">
|
||||
<TableStructureEditor
|
||||
ref="tableStructureEditorRef"
|
||||
:key="activeTab.id"
|
||||
:key="`${activeTab.id}-${activeTab.structureTableName || 'new'}`"
|
||||
:connection-id="activeTab.connectionId"
|
||||
:database="activeTab.database"
|
||||
:catalog="activeTab.catalog"
|
||||
@@ -2876,7 +2876,7 @@ defineExpose({
|
||||
:initial-target="activeTab.structureInitialTarget"
|
||||
:draft="activeTab.structureDraft"
|
||||
@update:draft="(draft) => (activeTab.structureDraft = draft)"
|
||||
@saved="(commentChanged) => emit('structureEditorSaved', activeTab.id, commentChanged)"
|
||||
@saved="(commentChanged, createdTableName) => emit('structureEditorSaved', activeTab.id, commentChanged, createdTableName)"
|
||||
@close="emit('structureEditorClose', activeTab.id)"
|
||||
@open-settings="(initialTab, initialSection) => emit('openSettings', initialTab, initialSection)"
|
||||
@view-data="onHandleStructureViewData"
|
||||
|
||||
@@ -105,7 +105,7 @@ export interface ContentAreaSurfaceEmits {
|
||||
objectBrowserSearchChange: [tabId: string, query: string];
|
||||
objectBrowserFilterChange: [tabId: string, filter: ObjectBrowserFilter];
|
||||
addObjectTableToAi: [tabId: string, tables: Array<{ name: string; schema?: string }>];
|
||||
structureEditorSaved: [tabId: string, commentChanged: boolean];
|
||||
structureEditorSaved: [tabId: string, commentChanged: boolean, createdTableName?: string];
|
||||
structureEditorClose: [tabId: string];
|
||||
previewStatement: [tabId: string, range: StatementRange | null];
|
||||
focusStatement: [tabId: string, range: StatementRange | null];
|
||||
|
||||
Reference in new issue
Block a user