fix space table name grid bug

This commit is contained in:
Martin McKeaveney 2021-03-03 13:51:53 +00:00
parent ea6b8e983c
commit 8dd49a4d09
4 changed files with 8 additions and 28 deletions

View File

@ -82,7 +82,7 @@ const createScreen = table => {
theme: "alpine",
height: "540",
pagination: true,
detailUrl: `${table.name.toLowerCase()}/:id`,
detailUrl: `${rowListUrl(table)}/:id`,
})
.instanceName("Grid")

View File

@ -162,16 +162,16 @@
{#if componentDefinition?.component?.endsWith('/fieldgroup')}
<Button secondary wide on:click={() => confirmResetFieldsDialog?.show()}>
Reset Fields
Update Form Fields
</Button>
{/if}
</div>
<ConfirmDialog
bind:this={confirmResetFieldsDialog}
body={`All components inside this group will be deleted and replaced with fields to match the schema. Are you sure you want to reset this Field Group?`}
okText="Reset"
body={`All components inside this group will be deleted and replaced with fields to match the schema. Are you sure you want to update this Field Group?`}
okText="Update"
onOk={resetFormFields}
title="Confirm Reset Fields" />
title="Confirm Form Field Update" />
<style>
.settings-view-container {

View File

@ -5,29 +5,7 @@
"icon": "ri-layout-column-line",
"hasChildren": true,
"styleable": true,
"settings": [
{
"type": "select",
"key": "type",
"label": "Type",
"defaultValue": "div",
"options": [
"article",
"aside",
"details",
"div",
"figure",
"figcaption",
"footer",
"header",
"main",
"mark",
"nav",
"paragraph",
"summary"
]
}
]
"settings": []
},
"datagrid": {
"name": "Grid",

View File

@ -25,6 +25,8 @@
export let pagination
export let detailUrl
$: console.log(detailUrl)
// Add setting height as css var to allow grid to use correct height
$: gridStyles = {
...$component.styles,