mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 11:23:59 +00:00
fix
This commit is contained in:
@@ -60,9 +60,11 @@
|
|||||||
export let objectTypeField = 'tables';
|
export let objectTypeField = 'tables';
|
||||||
let domEditor;
|
let domEditor;
|
||||||
|
|
||||||
|
let savedName;
|
||||||
|
|
||||||
export const activator = createActivator('TableStructureTab', true);
|
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 });
|
$: dbInfo = useDatabaseInfo({ conid, database });
|
||||||
$: tableInfoWithPairingId = $tableInfo ? generateTablePairingId($tableInfo) : null;
|
$: tableInfoWithPairingId = $tableInfo ? generateTablePairingId($tableInfo) : null;
|
||||||
$: connection = useConnectionInfo({ conid });
|
$: connection = useConnectionInfo({ conid });
|
||||||
@@ -81,9 +83,10 @@
|
|||||||
} else {
|
} else {
|
||||||
showModal(InputTextModal, {
|
showModal(InputTextModal, {
|
||||||
header: 'Set table name',
|
header: 'Set table name',
|
||||||
value: $editorValue.current.pureName || 'newTable',
|
value: savedName || 'newTable',
|
||||||
label: 'Table name',
|
label: 'Table name',
|
||||||
onConfirm: name => {
|
onConfirm: name => {
|
||||||
|
savedName = name;
|
||||||
setEditorData(tbl => ({
|
setEditorData(tbl => ({
|
||||||
base: tbl.base,
|
base: tbl.base,
|
||||||
current: {
|
current: {
|
||||||
|
|||||||
Reference in New Issue
Block a user