@ukhomeoffice/cop-react-form-renderer 5.97.4 → 5.97.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -246,7 +246,9 @@ var CollectionSummary = function CollectionSummary(_ref) {
|
|
|
246
246
|
id: "".concat(config.fieldId, ".addButton"),
|
|
247
247
|
action: {
|
|
248
248
|
collection: config.collectionName,
|
|
249
|
-
label: config.addButton.label || DEFAULT_ADD_BUTTON_LABEL,
|
|
249
|
+
label: _utils.default.interpolateString(config.addButton.label || DEFAULT_ADD_BUTTON_LABEL, {
|
|
250
|
+
documents: data
|
|
251
|
+
}),
|
|
250
252
|
page: config.addButton.page,
|
|
251
253
|
type: _PageAction.PageActionTypes.COLLECTION_ADD,
|
|
252
254
|
classModifiers: ['secondary']
|
|
@@ -303,7 +305,9 @@ var CollectionSummary = function CollectionSummary(_ref) {
|
|
|
303
305
|
id: "".concat(config.fieldId, ".addButton"),
|
|
304
306
|
action: {
|
|
305
307
|
collection: config.collectionName,
|
|
306
|
-
label: config.addButton.label || DEFAULT_ADD_BUTTON_LABEL,
|
|
308
|
+
label: _utils.default.interpolateString(config.addButton.label || DEFAULT_ADD_BUTTON_LABEL, {
|
|
309
|
+
documents: data
|
|
310
|
+
}),
|
|
307
311
|
page: config.addButton.page,
|
|
308
312
|
type: _PageAction.PageActionTypes.COLLECTION_ADD,
|
|
309
313
|
classModifiers: ['secondary'],
|