Merge branch 'linked-records' of github.com:Budibase/budibase into linked-records
This commit is contained in:
commit
725e4e9944
|
@ -15,6 +15,7 @@
|
|||
|
||||
$: sortColumn = $backendUiStore.sort && $backendUiStore.sort.column
|
||||
$: sortDirection = $backendUiStore.sort && $backendUiStore.sort.direction
|
||||
$: type = field?.type
|
||||
|
||||
function showEditor() {
|
||||
editing = true
|
||||
|
@ -54,10 +55,12 @@
|
|||
<CreateEditColumnModal onClosed={hideEditor} {field} />
|
||||
{:else}
|
||||
<ul>
|
||||
<li data-cy="edit-column-header" on:click={showEditor}>
|
||||
<Icon name="edit" />
|
||||
Edit
|
||||
</li>
|
||||
{#if type !== 'link'}
|
||||
<li data-cy="edit-column-header" on:click={showEditor}>
|
||||
<Icon name="edit" />
|
||||
Edit
|
||||
</li>
|
||||
{/if}
|
||||
<li
|
||||
data-cy="delete-column-header"
|
||||
on:click={() => confirmDeleteDialog.show()}>
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
export let onClosed
|
||||
|
||||
let errors = []
|
||||
$: model = record.modelId ? $backendUiStore.models.find(model => model._id === record?.modelId) : $backendUiStore.selectedModel
|
||||
$: model = record.modelId
|
||||
? $backendUiStore.models.find(model => model._id === record?.modelId)
|
||||
: $backendUiStore.selectedModel
|
||||
$: modelSchema = Object.entries(model?.schema ?? {})
|
||||
$: console.log(modelSchema)
|
||||
|
||||
async function saveRecord() {
|
||||
const recordResponse = await api.saveRecord(
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
<style>
|
||||
.container {
|
||||
padding: var(--spacing-xl);
|
||||
padding: 30px;
|
||||
display: grid;
|
||||
grid-gap: var(--spacing-xl);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue