Merge pull request #1242 from Budibase/083bugfixes

fix space table name grid bug
This commit is contained in:
Martin McKeaveney 2021-03-03 15:59:30 +00:00 committed by GitHub
commit af6ccebb17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 31 deletions

View File

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

View File

@ -162,16 +162,16 @@
{#if componentDefinition?.component?.endsWith('/fieldgroup')} {#if componentDefinition?.component?.endsWith('/fieldgroup')}
<Button secondary wide on:click={() => confirmResetFieldsDialog?.show()}> <Button secondary wide on:click={() => confirmResetFieldsDialog?.show()}>
Reset Fields Update Form Fields
</Button> </Button>
{/if} {/if}
</div> </div>
<ConfirmDialog <ConfirmDialog
bind:this={confirmResetFieldsDialog} 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?`} 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="Reset" okText="Update"
onOk={resetFormFields} onOk={resetFormFields}
title="Confirm Reset Fields" /> title="Confirm Form Field Update" />
<style> <style>
.settings-view-container { .settings-view-container {

View File

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

View File

@ -152,9 +152,7 @@
{#if selectedRows.length > 0} {#if selectedRows.length > 0}
<DeleteButton text small on:click={modal.show()}> <DeleteButton text small on:click={modal.show()}>
<Icon name="addrow" /> <Icon name="addrow" />
Delete Delete {selectedRows.length} row(s)
{selectedRows.length}
row(s)
</DeleteButton> </DeleteButton>
{/if} {/if}
</div> </div>