1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

Allow suppressing block row creation alerts

This commit is contained in:
Gerard Burns 2023-07-05 12:56:04 +01:00
parent d2474de319
commit 8371c3f644
4 changed files with 27 additions and 0 deletions

View file

@ -4490,6 +4490,16 @@
"setting": "clickBehaviour",
"value": "details"
}
},
{
"type": "boolean",
"label": "Do not display default save notification",
"key": "notificationOverride",
"defaultValue": false,
"dependsOn": {
"setting": "clickBehaviour",
"value": "details"
}
}
]
},
@ -5127,6 +5137,16 @@
"value": "View",
"invert": true
}
},
{
"type": "boolean",
"label": "Do not display default save notification",
"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",
@ -46,6 +47,7 @@
parameters: {
providerId: formId,
tableId: dataSource?.tableId,
notificationOverride,
},
},
{