mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Merge pull request #7932 from ToolJet/appdef/component-general-properties-styles
[appdef] fixes: creating component general properties and styles for versioning, import/export
This commit is contained in:
commit
1f086a2c40
4 changed files with 11 additions and 0 deletions
|
|
@ -215,6 +215,9 @@ export class MigrateAppsDefinitionSchemaTransition1697473340856 implements Migra
|
|||
transformedComponent.properties = componentData.definition.properties || {};
|
||||
transformedComponent.styles = componentData.definition.styles || {};
|
||||
transformedComponent.validation = componentData.definition.validation || {};
|
||||
transformedComponent.general = componentData.definition.general || {};
|
||||
transformedComponent.generalStyles = componentData.definition.generalStyles || {};
|
||||
transformedComponent.displayPreferences = componentData.definition.others || {};
|
||||
transformedComponent.parent = data[componentId].parent || null;
|
||||
transformedComponents.push(transformedComponent);
|
||||
|
||||
|
|
|
|||
|
|
@ -1508,6 +1508,9 @@ function transformComponentData(data: object, componentEvents: any[]): Component
|
|||
transformedComponent.properties = componentData.definition.properties || {};
|
||||
transformedComponent.styles = componentData.definition.styles || {};
|
||||
transformedComponent.validation = componentData.definition.validation || {};
|
||||
transformedComponent.general = componentData.definition.general || {};
|
||||
transformedComponent.generalStyles = componentData.definition.generalStyles || {};
|
||||
transformedComponent.displayPreferences = componentData.definition.others || {};
|
||||
transformedComponent.parent = data[componentId].parent || null;
|
||||
|
||||
transformedComponents.push(transformedComponent);
|
||||
|
|
|
|||
|
|
@ -533,6 +533,9 @@ export class AppsService {
|
|||
newComponent.properties = component.properties;
|
||||
newComponent.styles = component.styles;
|
||||
newComponent.validation = component.validation;
|
||||
newComponent.general = component.general;
|
||||
newComponent.generalStyles = component.generalStyles;
|
||||
newComponent.displayPreferences = component.displayPreferences;
|
||||
newComponent.parent = component.parent ? parentId : null;
|
||||
newComponent.page = savedPage;
|
||||
|
||||
|
|
|
|||
|
|
@ -199,6 +199,8 @@ export class ComponentsService {
|
|||
transformedComponent.styles = componentData.styles || {};
|
||||
transformedComponent.validation = componentData.validation || {};
|
||||
transformedComponent.displayPreferences = componentData.others || null;
|
||||
transformedComponent.general = componentData.general || null;
|
||||
transformedComponent.generalStyles = componentData.generalStyles || null;
|
||||
|
||||
transformedComponents.push(transformedComponent);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue