fix builder component library loading issue
This commit is contained in:
parent
b5f224ca60
commit
2f9944aa4b
|
@ -93,7 +93,7 @@ const setPackage = (store, initial) => async pkg => {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
initial.libraries = await fetchComponentLibModules(pkg.application)
|
initial.libraries = pkg.application.componentLibraries;
|
||||||
initial.components = await fetchComponentLibDefinitions(pkg.application._id)
|
initial.components = await fetchComponentLibDefinitions(pkg.application._id)
|
||||||
initial.appname = pkg.application.name
|
initial.appname = pkg.application.name
|
||||||
initial.appId = pkg.application._id
|
initial.appId = pkg.application._id
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
$: frontendDefinition = {
|
$: frontendDefinition = {
|
||||||
appId: $store.appId,
|
appId: $store.appId,
|
||||||
libraries: Object.keys($store.libraries),
|
libraries: $store.libraries,
|
||||||
page: $store.currentPreviewItem,
|
page: $store.currentPreviewItem,
|
||||||
screens: screensExist
|
screens: screensExist
|
||||||
? $store.currentPreviewItem._screens
|
? $store.currentPreviewItem._screens
|
||||||
|
|
|
@ -36,11 +36,6 @@
|
||||||
sortBy("title"),
|
sortBy("title"),
|
||||||
])
|
])
|
||||||
|
|
||||||
const isScreenSelected = component =>
|
|
||||||
component.component &&
|
|
||||||
$store.currentPreviewItem &&
|
|
||||||
component.component.name === $store.currentPreviewItem.name
|
|
||||||
|
|
||||||
const confirmDeleteComponent = component => {
|
const confirmDeleteComponent = component => {
|
||||||
componentToDelete = component
|
componentToDelete = component
|
||||||
confirmDeleteDialog.show()
|
confirmDeleteDialog.show()
|
||||||
|
@ -54,6 +49,7 @@
|
||||||
|
|
||||||
<div class="root">
|
<div class="root">
|
||||||
|
|
||||||
|
|
||||||
{#each _screens as screen}
|
{#each _screens as screen}
|
||||||
<div
|
<div
|
||||||
class="budibase__nav-item component"
|
class="budibase__nav-item component"
|
||||||
|
|
|
@ -34,11 +34,6 @@
|
||||||
title: lastPartOfName(layout),
|
title: lastPartOfName(layout),
|
||||||
}
|
}
|
||||||
|
|
||||||
const isScreenSelected = component =>
|
|
||||||
component.component &&
|
|
||||||
$store.currentPreviewItem &&
|
|
||||||
component.component.name === $store.currentPreviewItem.name
|
|
||||||
|
|
||||||
const confirmDeleteComponent = async component => {
|
const confirmDeleteComponent = async component => {
|
||||||
componentToDelete = component
|
componentToDelete = component
|
||||||
confirmDeleteDialog.show()
|
confirmDeleteDialog.show()
|
||||||
|
|
|
@ -49,8 +49,6 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
{:else if type === 'colour'}
|
|
||||||
<Colorpicker {onChanged} {value} />
|
|
||||||
{:else}
|
{:else}
|
||||||
<PropertyCascader {onChanged} {value} />
|
<PropertyCascader {onChanged} {value} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue