mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
column editor dialog
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { generateTableGroupId } from 'dbgate-tools';
|
||||
|
||||
import _ from 'lodash';
|
||||
|
||||
import ColumnLabel from '../elements/ColumnLabel.svelte';
|
||||
@@ -25,9 +27,12 @@
|
||||
export let objectTypeField = 'tables';
|
||||
|
||||
$: tableInfo = useDbCore({ conid, database, schemaName, pureName, objectTypeField });
|
||||
$: tableInfoWithGroupId = $tableInfo ? generateTableGroupId($tableInfo) : null;
|
||||
|
||||
const { editorState, editorValue, setEditorData } = useEditorData({ tabid });
|
||||
|
||||
$: showTable = $editorValue || tableInfoWithGroupId;
|
||||
|
||||
</script>
|
||||
|
||||
<TableEditor {tableInfo} />
|
||||
<TableEditor tableInfo={showTable} setTableInfo={objectTypeField == 'tables' ? setEditorData : null} />
|
||||
|
||||
Reference in New Issue
Block a user