1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Remove text setting from dynamic filter component

This commit is contained in:
Andrew Kingston 2021-11-24 08:20:23 +00:00
parent 8d44e9aa20
commit fa9fc496f6
2 changed files with 2 additions and 10 deletions

View file

@ -2662,12 +2662,6 @@
"key": "allowedFields",
"placeholder": "All fields"
},
{
"type": "text",
"label": "Button text",
"key": "text",
"defaultValue": "Filter"
},
{
"type": "select",
"label": "Button size",

View file

@ -8,7 +8,6 @@
export let dataProvider
export let allowedFields
export let text = ""
export let size = "M"
const component = getContext("component")
@ -29,7 +28,6 @@
)
$: schema = dataProvider?.schema
$: schemaFields = getSchemaFields(schema, allowedFields)
$: buttonText = text || "Filter"
// Add query extension to data provider
$: {
@ -73,7 +71,7 @@
<Button
onClick={openEditor}
icon="Properties"
text={buttonText}
text="Filter"
{size}
type="secondary"
quiet
@ -81,7 +79,7 @@
/>
<Modal bind:this={modal}>
<ModalContent title={buttonText} size="XL" onConfirm={updateQuery}>
<ModalContent title="Edit filters" size="XL" onConfirm={updateQuery}>
<FilterModal bind:filters={tmpFilters} {schemaFields} />
</ModalContent>
</Modal>