apps - disabled VFK views and queries

This commit is contained in:
Jan Prochazka
2022-01-29 14:26:30 +01:00
parent 70e0dd47a6
commit 8648fad38e
2 changed files with 4 additions and 5 deletions

View File

@@ -29,9 +29,8 @@
let refTableName = null; let refTableName = null;
let refSchemaName = null; let refSchemaName = null;
$: refTableInfo = $: refTableInfo = $dbInfo?.tables?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
$dbInfo?.tables?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName) || // $dbInfo?.views?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
$dbInfo?.views?.find(x => x.pureName == refTableName && x.schemaName == refSchemaName);
onMount(() => { onMount(() => {
if (columnName) { if (columnName) {
@@ -59,7 +58,7 @@
notSelected notSelected
options={[ options={[
..._.sortBy($dbInfo?.tables || [], ['schemaName', 'pureName']), ..._.sortBy($dbInfo?.tables || [], ['schemaName', 'pureName']),
..._.sortBy($dbInfo?.views || [], ['schemaName', 'pureName']), // ..._.sortBy($dbInfo?.views || [], ['schemaName', 'pureName']),
].map(tbl => ({ ].map(tbl => ({
label: fullNameToLabel(tbl), label: fullNameToLabel(tbl),
value: fullNameToString(tbl), value: fullNameToString(tbl),

View File

@@ -72,7 +72,7 @@
text: 'New SQL command', text: 'New SQL command',
onClick: () => handleNewSqlFile('command.sql', 'Create new SQL command', COMMAND_TEMPLATE), onClick: () => handleNewSqlFile('command.sql', 'Create new SQL command', COMMAND_TEMPLATE),
}, },
{ text: 'New query view', onClick: () => handleNewSqlFile('query.sql', 'Create new SQL query', QUERY_TEMPLATE) }, // { text: 'New query view', onClick: () => handleNewSqlFile('query.sql', 'Create new SQL query', QUERY_TEMPLATE) },
]; ];
} }
</script> </script>