feat(structure): keep newly created tables open for editing
This commit is contained in:
18 files changed
+476
-10
No files matched your search
@@ -4371,9 +4371,13 @@ onUnmounted(() => {
|
||||
}
|
||||
"
|
||||
@structure-editor-saved="
|
||||
(tabId: string, commentChanged: boolean) => {
|
||||
(tabId: string, commentChanged: boolean, createdTableName?: string) => {
|
||||
const tab = queryStore.tabs.find((candidate) => candidate.id === tabId);
|
||||
if (!tab) return;
|
||||
if (createdTableName) {
|
||||
tab.structureTableName = createdTableName;
|
||||
tab.title = t('structureEditor.editTabTitle', { tableName: createdTableName });
|
||||
}
|
||||
onStructureEditorSaved(
|
||||
async () => {
|
||||
await onReloadData(tabId);
|
||||
@@ -4387,6 +4391,7 @@ onUnmounted(() => {
|
||||
tableName: tab.structureTableName || '',
|
||||
},
|
||||
commentChanged,
|
||||
!!createdTableName,
|
||||
);
|
||||
}
|
||||
"
|
||||
|
||||
Reference in new issue
Block a user