@sap-ux/control-property-editor 0.4.7 → 0.4.8
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.
package/package.json
CHANGED
package/src/i18n/i18n.json
CHANGED
|
@@ -57,12 +57,14 @@
|
|
|
57
57
|
"CANCEL_DELETE": "Cancel",
|
|
58
58
|
"DELETE_ALL_PROPERTY_CHANGES_TOOLTIP": "Delete all changes for this property",
|
|
59
59
|
"CONFIRM_DELETE_TITLE": "Confirm property change deletion",
|
|
60
|
+
"CONFIRM_OTHER_CHANGE_DELETE_TITLE": "Confirm change deletion",
|
|
60
61
|
"CONFIRM_DELETE_SUBTEXT": "Are you sure you want to delete all changes for this property? This action cannot be undone.",
|
|
61
62
|
"FIT_PREVIEW": "Fit",
|
|
62
63
|
"FILTER": "Filter",
|
|
63
64
|
"CHANGE_SUMMARY_SAVED_CHANGES": "SAVED CHANGES",
|
|
64
65
|
"CHANGE_SUMMARY_UNSAVED_CHANGES": "UNSAVED CHANGES",
|
|
65
66
|
"CONFIRM_CHANGE_SUMMARY_DELETE_SUBTEXT": "Are you sure you want to delete the change for this property? This action cannot be undone.",
|
|
67
|
+
"CONFIRM_OTHER_CHANGE_DELETE_SUBTEXT": "Are you sure you want to delete this {{name}} change? This action cannot be undone.",
|
|
66
68
|
"NO_CONTROL_CHANGES_FOUND": "No Control Changes Found",
|
|
67
69
|
"CHANGE": "Change",
|
|
68
70
|
"FILE": "File: ",
|
|
@@ -101,8 +101,8 @@ export function UnknownChange(unknownChangeProps: UnknownChangeProps): ReactElem
|
|
|
101
101
|
cancelButtonText={t('CANCEL_DELETE')}
|
|
102
102
|
onCancel={onCancelDelete}
|
|
103
103
|
dialogContentProps={{
|
|
104
|
-
title: t('
|
|
105
|
-
subText: t('
|
|
104
|
+
title: t('CONFIRM_OTHER_CHANGE_DELETE_TITLE'),
|
|
105
|
+
subText: t('CONFIRM_OTHER_CHANGE_DELETE_SUBTEXT', { name })
|
|
106
106
|
}}
|
|
107
107
|
/>
|
|
108
108
|
)}
|
|
@@ -308,11 +308,7 @@ describe('ChangePanel', () => {
|
|
|
308
308
|
expect(iconName).toBe('TrashCan');
|
|
309
309
|
|
|
310
310
|
fireEvent.click(deleteButton);
|
|
311
|
-
expect(
|
|
312
|
-
screen.getByText(
|
|
313
|
-
/Are you sure you want to delete the change for this property\? This action cannot be undone\./i
|
|
314
|
-
)
|
|
315
|
-
).toBeInTheDocument();
|
|
311
|
+
expect(screen.getByText(/Are you sure you want to delete/i)).toBeInTheDocument();
|
|
316
312
|
|
|
317
313
|
// first cancel
|
|
318
314
|
const cancelButton = screen.getByRole('button', { name: /^Cancel$/i });
|