1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

Merge branch 'form-builder' into relationship-one-to-many

This commit is contained in:
Keviin Åberg Kultalahti 2021-02-09 12:40:52 +01:00
commit cd14b7b4e4
3 changed files with 5 additions and 6 deletions

View file

@ -84,7 +84,7 @@ services:
#- "4369:4369"
#- "9100:9100"
volumes:
- couchdb_data:/couchdb
- couchdb_data:/opt/couchdb/data
couch-init:
image: curlimages/curl

View file

@ -13,9 +13,8 @@
let dropdown
let anchor
$: noChildrenAllowed =
!component ||
!store.actions.components.getDefinition(component._component)?.hasChildren
$: definition = store.actions.components.getDefinition(component?._component)
$: noChildrenAllowed = !component || !definition?.hasChildren
$: noPaste = !$store.componentToPaste
const lastPartOfName = c => (c ? last(c._component.split("/")) : "")
@ -130,7 +129,7 @@
<ConfirmDialog
bind:this={confirmDeleteDialog}
title="Confirm Deletion"
body={`Are you sure you wish to delete this '${lastPartOfName(component)}' component?`}
body={`Are you sure you wish to delete this '${definition?.name}' component?`}
okText="Delete Component"
onOk={deleteComponent} />

View file

@ -32,7 +32,7 @@
// this statement initialises fields from parameters.fields
$: fields =
fields ||
Object.keys(parameterFields || { "": "" }).map(name => ({
Object.keys(parameterFields || {}).map(name => ({
name,
value:
(parameterFields &&