mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
renamed groupId => pairingId
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { generateTableGroupId } from 'dbgate-tools';
|
||||
import { generateTablePairingId } from 'dbgate-tools';
|
||||
|
||||
import _ from 'lodash';
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
export let objectTypeField = 'tables';
|
||||
|
||||
$: tableInfo = useDbCore({ conid, database, schemaName, pureName, objectTypeField });
|
||||
$: tableInfoWithGroupId = $tableInfo ? generateTableGroupId($tableInfo) : null;
|
||||
$: tableInfoWithPairingId = $tableInfo ? generateTablePairingId($tableInfo) : null;
|
||||
|
||||
const { editorState, editorValue, setEditorData } = useEditorData({ tabid });
|
||||
|
||||
$: showTable = $editorValue || tableInfoWithGroupId;
|
||||
$: showTable = $editorValue || tableInfoWithPairingId;
|
||||
|
||||
</script>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
? tableInfoUpdater =>
|
||||
setEditorData(tbl => {
|
||||
if (tbl) return tableInfoUpdater(tbl);
|
||||
return tableInfoUpdater(tableInfoWithGroupId);
|
||||
return tableInfoUpdater(tableInfoWithPairingId);
|
||||
})
|
||||
: null}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user