1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Merge pull request #11140 from Budibase/allow-customizing-component-alerts

Allow suppressing block row creation alerts
This commit is contained in:
Andrew Kingston 2023-07-11 11:25:56 +01:00 committed by GitHub
commit 869e6688a0
4 changed files with 27 additions and 0 deletions

View file

@ -4581,6 +4581,16 @@
"setting": "clickBehaviour",
"value": "details"
}
},
{
"type": "boolean",
"label": "Hide notifications",
"key": "notificationOverride",
"defaultValue": false,
"dependsOn": {
"setting": "clickBehaviour",
"value": "details"
}
}
]
},
@ -5218,6 +5228,16 @@
"value": "View",
"invert": true
}
},
{
"type": "boolean",
"label": "Hide notifications",
"key": "notificationOverride",
"defaultValue": false,
"dependsOn": {
"setting": "showSaveButton",
"value": true
}
}
]
}

View file

@ -30,6 +30,7 @@
export let sidePanelShowDelete
export let sidePanelSaveLabel
export let sidePanelDeleteLabel
export let notificationOverride
const { fetchDatasourceSchema, API } = getContext("sdk")
const stateKey = `ID_${generate()}`
@ -253,6 +254,7 @@
fields: sidePanelFields || normalFields,
title: editTitle,
labelPosition: "left",
notificationOverride,
}}
/>
</BlockComponent>
@ -277,6 +279,7 @@
fields: sidePanelFields || normalFields,
title: "Create Row",
labelPosition: "left",
notificationOverride,
}}
/>
</BlockComponent>

View file

@ -19,6 +19,7 @@
export let rowId
export let actionUrl
export let noRowsMessage
export let notificationOverride
const { fetchDatasourceSchema } = getContext("sdk")
@ -87,6 +88,7 @@
showDeleteButton,
schema,
repeaterId,
notificationOverride,
}
const fetchSchema = async () => {

View file

@ -17,6 +17,7 @@
export let showDeleteButton
export let schema
export let repeaterId
export let notificationOverride
const FieldTypeToComponentMap = {
string: "stringfield",
@ -47,6 +48,7 @@
parameters: {
providerId: formId,
tableId: dataSource?.tableId,
notificationOverride,
},
},
{