free table editor => data sheet

This commit is contained in:
Jan Prochazka
2021-11-28 19:57:53 +01:00
parent fa648ca675
commit 9c1a6e220a
6 changed files with 16 additions and 7 deletions

View File

@@ -17,6 +17,8 @@
<script lang="ts">
import { createFreeTableModel, runMacro } from 'dbgate-datalib';
import { setContext } from 'svelte';
import { writable } from 'svelte/store';
import registerCommand from '../commands/registerCommand';
import DataGrid from '../datagrid/DataGrid.svelte';
import ErrorInfo from '../elements/ErrorInfo.svelte';
@@ -81,6 +83,9 @@
dispatchModel({ type: 'set', value: newModel });
}
const collapsedLeftColumnStore = writable(false);
setContext('collapsedLeftColumnStore', collapsedLeftColumnStore);
registerMenu({ command: 'freeTable.save', tag: 'save' });
</script>