mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	Merge branch 'i18n/rbac-rework-front' of github.com:strapi/strapi into i18n/cm-copy-from-locale
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
		
						commit
						2e4e66bc01
					
				| @ -42,8 +42,6 @@ class InputJSONWithErrors extends React.Component { | |||||||
|       ...rest |       ...rest | ||||||
|     } = this.props; |     } = this.props; | ||||||
| 
 | 
 | ||||||
|     console.log({ labelIcon }); |  | ||||||
| 
 |  | ||||||
|     const handleBlur = isFunction(onBlur) ? onBlur : this.handleBlur; |     const handleBlur = isFunction(onBlur) ? onBlur : this.handleBlur; | ||||||
| 
 | 
 | ||||||
|     return ( |     return ( | ||||||
|  | |||||||
| @ -38,7 +38,7 @@ const mutateCTBContentTypeSchema = (nextSchema, prevSchema) => { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   const isNextSchemaLocalized = get(nextSchema, localizedPath, false); |   const isNextSchemaLocalized = get(nextSchema, localizedPath, false); | ||||||
|   const isPrevSchemaLocalized = get(prevSchema, localizedPath, false); |   const isPrevSchemaLocalized = get(prevSchema, ['schema', ...localizedPath], false); | ||||||
| 
 | 
 | ||||||
|   // No need to perform modification on the schema, if the i18n feature was not changed
 |   // No need to perform modification on the schema, if the i18n feature was not changed
 | ||||||
|   // at the ct level
 |   // at the ct level
 | ||||||
|  | |||||||
| @ -89,10 +89,12 @@ describe('i18n | utils ', () => { | |||||||
| 
 | 
 | ||||||
|       expect( |       expect( | ||||||
|         mutateSchema(ctSchema, { |         mutateSchema(ctSchema, { | ||||||
|           pluginOptions: { |           schema: { | ||||||
|             pluginA: { foo: 'bar' }, |             pluginOptions: { | ||||||
|             i18n: { localized: true }, |               pluginA: { foo: 'bar' }, | ||||||
|             pluginB: { foo: 'bar' }, |               i18n: { localized: true }, | ||||||
|  |               pluginB: { foo: 'bar' }, | ||||||
|  |             }, | ||||||
|           }, |           }, | ||||||
|         }) |         }) | ||||||
|       ).toEqual(ctSchema); |       ).toEqual(ctSchema); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 soupette
						soupette