Browse Source

Prevent inline editing of components with missing required settings

pull/6309/head
Andrew Kingston 4 years ago
parent
commit
8fbcf86d40
  1. 2
      packages/client/src/components/Component.svelte

2
packages/client/src/components/Component.svelte

@ -101,10 +101,10 @@
// Derive definition properties which can all be optional, so need to be
// coerced to booleans
$: editable = !!definition?.editable
$: hasChildren = !!definition?.hasChildren
$: showEmptyState = definition?.showEmptyState !== false
$: hasMissingRequiredSettings = missingRequiredSettings?.length > 0
$: editable = !!definition?.editable && !hasMissingRequiredSettings
// Interactive components can be selected, dragged and highlighted inside
// the builder preview

Loading…
Cancel
Save