users and relationships
This commit is contained in:
parent
12d2982c67
commit
585b4e07ad
|
@ -1,6 +1,10 @@
|
||||||
<script>
|
<script>
|
||||||
|
import { tables } from "stores/builder"
|
||||||
import { BindingValue, Block, Subject, JSONValue, Property, Section } from './components'
|
import { BindingValue, Block, Subject, JSONValue, Property, Section } from './components'
|
||||||
|
|
||||||
|
$: {
|
||||||
|
console.log($tables)
|
||||||
|
}
|
||||||
export let schema
|
export let schema
|
||||||
export let columnName
|
export let columnName
|
||||||
</script>
|
</script>
|
||||||
|
@ -77,6 +81,24 @@
|
||||||
name="Formula type"
|
name="Formula type"
|
||||||
value={schema?.formulaType === "dynamic" ? "Dynamic" : "Static"}
|
value={schema?.formulaType === "dynamic" ? "Dynamic" : "Static"}
|
||||||
/>
|
/>
|
||||||
|
{:else if schema.type === "link"}
|
||||||
|
<Property
|
||||||
|
name="Type"
|
||||||
|
value={schema?.relationshipType}
|
||||||
|
/>
|
||||||
|
<Property
|
||||||
|
name="Related Table"
|
||||||
|
value={$tables?.list?.find(table => table._id === schema?.tableId)?.name}
|
||||||
|
/>
|
||||||
|
<Property
|
||||||
|
name="Column in Related Table"
|
||||||
|
value={schema?.fieldName}
|
||||||
|
/>
|
||||||
|
{:else if schema.type === "bb_reference"}
|
||||||
|
<Property
|
||||||
|
name="Allow multiple users"
|
||||||
|
value={schema?.relationshipType === "many-to-many" ? "Yes" : "No"}
|
||||||
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
<Property
|
<Property
|
||||||
name="Required"
|
name="Required"
|
||||||
|
|
Loading…
Reference in New Issue