This commit is contained in:
Jan Prochazka 2021-09-10 19:10:31 +02:00
parent 1c1aedcefe
commit 9f204bf187

View File

@ -60,9 +60,11 @@
export let objectTypeField = 'tables';
let domEditor;
let savedName;
export const activator = createActivator('TableStructureTab', true);
$: tableInfo = useDbCore({ conid, database, schemaName, pureName, objectTypeField });
$: tableInfo = useDbCore({ conid, database, schemaName, pureName: savedName || pureName, objectTypeField });
$: dbInfo = useDatabaseInfo({ conid, database });
$: tableInfoWithPairingId = $tableInfo ? generateTablePairingId($tableInfo) : null;
$: connection = useConnectionInfo({ conid });
@ -81,9 +83,10 @@
} else {
showModal(InputTextModal, {
header: 'Set table name',
value: $editorValue.current.pureName || 'newTable',
value: savedName || 'newTable',
label: 'Table name',
onConfirm: name => {
savedName = name;
setEditorData(tbl => ({
base: tbl.base,
current: {