Change ui:options to ui:backstage
Signed-off-by: chicoribas <chico.bribas@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ describe('MultistepJsonForm', () => {
|
||||
masked: {
|
||||
title: 'Masked',
|
||||
type: 'string',
|
||||
'ui:options': {
|
||||
'ui:backstage': {
|
||||
review: {
|
||||
show: true,
|
||||
mask: '******',
|
||||
@@ -61,7 +61,7 @@ describe('MultistepJsonForm', () => {
|
||||
hidden: {
|
||||
title: 'Hidden',
|
||||
type: 'string',
|
||||
'ui:options': {
|
||||
'ui:backstage': {
|
||||
review: {
|
||||
show: false,
|
||||
},
|
||||
|
||||
@@ -63,7 +63,6 @@ export function getUiSchemasFromSteps(steps: Step[]): UiSchema[] {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return uiSchemas;
|
||||
}
|
||||
|
||||
@@ -84,12 +83,12 @@ export function getReviewData(formData: Record<string, any>, steps: Step[]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!uiSchema['ui:options'] || !uiSchema['ui:options'].review) {
|
||||
if (!uiSchema['ui:backstage'] || !uiSchema['ui:backstage'].review) {
|
||||
reviewData[key] = formData[key];
|
||||
continue;
|
||||
}
|
||||
|
||||
const review = uiSchema['ui:options'].review as JsonObject;
|
||||
const review = uiSchema['ui:backstage'].review as JsonObject;
|
||||
if (!review.show) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user