default columns processor

This commit is contained in:
Jan Prochazka
2022-08-27 19:50:51 +02:00
parent 24923db199
commit 6b5e33d97e
6 changed files with 82 additions and 34 deletions

View File

@@ -36,6 +36,7 @@
PerspectiveDataProvider,
PerspectiveTableColumnNode,
PerspectiveTableNode,
processPerspectiveDefaultColunns,
} from 'dbgate-datalib';
import _ from 'lodash';
@@ -147,6 +148,13 @@
config.rootDesignerId
)
: null;
$: {
const newConfig = processPerspectiveDefaultColunns(config, $dbInfos, conid, database);
if (newConfig) {
setConfig(() => newConfig);
}
}
</script>
<HorizontalSplitter initialValue={getInitialManagerSize()} bind:size={managerSize}>