|
|
|
@ -159,6 +159,11 @@ |
|
|
|
await store.actions.components.updateProp(data.prop, data.value) |
|
|
|
} else if (type === "delete-component" && data.id) { |
|
|
|
confirmDeleteComponent(data.id) |
|
|
|
} else if (type === "duplicate-component" && data.id) { |
|
|
|
const rootComponent = get(currentAsset).props |
|
|
|
const component = findComponent(rootComponent, data.id) |
|
|
|
store.actions.components.copy(component) |
|
|
|
await store.actions.components.paste(component) |
|
|
|
} else if (type === "preview-loaded") { |
|
|
|
// Wait for this event to show the client library if intelligent |
|
|
|
// loading is supported |
|
|
|
|