Replace shouldSyncNameAndLabel with isLabelSyncedWithName (#8067)

For consistency. 
This was not deployed yet so allowing myself just to rename everything,
meaning developers will need to reset their db.
This commit is contained in:
Marie
2024-10-25 18:28:58 +02:00
committed by GitHub
parent e5175194ac
commit d51a797d91
22 changed files with 80 additions and 80 deletions

View File

@ -14,7 +14,7 @@ describe('settingsCreateObjectInputSchema', () => {
labelSingular: 'Label ',
namePlural: 'namePlural',
nameSingular: 'nameSingular',
shouldSyncLabelAndName: false,
isLabelSyncedWithName: false,
};
// When
@ -29,7 +29,7 @@ describe('settingsCreateObjectInputSchema', () => {
labelSingular: 'Label',
namePlural: 'namePlural',
nameSingular: 'nameSingular',
shouldSyncLabelAndName: false,
isLabelSyncedWithName: false,
});
});

View File

@ -12,6 +12,6 @@ export const settingsCreateObjectInputSchema =
namePlural:
values.namePlural ??
computeMetadataNameFromLabelOrThrow(values.labelPlural),
shouldSyncLabelAndName: values.shouldSyncLabelAndName ?? true,
isLabelSyncedWithName: values.isLabelSyncedWithName ?? true,
}),
);