issue with datasource plus autogen
This commit is contained in:
parent
cc40a68423
commit
c89e807e31
|
@ -13,6 +13,7 @@
|
||||||
$: blankSelected = selectedScreens?.length === 1
|
$: blankSelected = selectedScreens?.length === 1
|
||||||
$: autoSelected = selectedScreens?.length > 0 && !blankSelected
|
$: autoSelected = selectedScreens?.length > 0 && !blankSelected
|
||||||
let templates = getTemplates($store, $tables.list)
|
let templates = getTemplates($store, $tables.list)
|
||||||
|
console.log($tables.list)
|
||||||
const toggleScreenSelection = table => {
|
const toggleScreenSelection = table => {
|
||||||
if (selectedScreens.find(s => s.name.includes(table.name))) {
|
if (selectedScreens.find(s => s.name.includes(table.name))) {
|
||||||
selectedScreens = selectedScreens.filter(
|
selectedScreens = selectedScreens.filter(
|
||||||
|
@ -60,7 +61,7 @@
|
||||||
</div>
|
</div>
|
||||||
<Detail size="S">Autogenerated Screens</Detail>
|
<Detail size="S">Autogenerated Screens</Detail>
|
||||||
|
|
||||||
{#each $tables.list.filter(table => table.type !== "external" && table._id !== "ta_users") as table}
|
{#each $tables.list.filter(table => table._id !== "ta_users") as table}
|
||||||
<div
|
<div
|
||||||
class:disabled={blankSelected}
|
class:disabled={blankSelected}
|
||||||
class:selected={selectedScreens.find(x => x.name.includes(table.name))}
|
class:selected={selectedScreens.find(x => x.name.includes(table.name))}
|
||||||
|
|
Loading…
Reference in New Issue