impaktapps-ui-builder 0.0.963-copyElement.1019 → 0.0.963-copyElement.1020
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
|
@@ -198,7 +198,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
elementPathHandler: function(parentPath: string, rowId, elementType: string){
|
|
201
|
-
if(elementType === "
|
|
201
|
+
if(elementType === "Component"){
|
|
202
202
|
return parentPath ? `${parentPath}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
203
203
|
}
|
|
204
204
|
return parentPath ? `${parentPath}.events[${rowId}]` : `events[${rowId}]`;
|
|
@@ -215,7 +215,7 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
215
215
|
const copiedElementPath = this.elementPathHandler(parentPathOfCopiedComponent, rowId, elementType);
|
|
216
216
|
|
|
217
217
|
const formData = getFormdataFromSessionStorage(copiedElementPath);
|
|
218
|
-
const elementHeading = elementType === "
|
|
218
|
+
const elementHeading = elementType === "Component" ? `Copied Element: ${formData.name}` : `Copied Event: ${formData.eventType} `;
|
|
219
219
|
uiSchema.elements[2].elements[1].config.main.heading = elementHeading;
|
|
220
220
|
sessionStorage.setItem('copiedConfig',JSON.stringify(formData));
|
|
221
221
|
store.setSchema(schema);
|