|
|
|
@ -524,7 +524,7 @@ export const getFrontendStore = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
paste: async (targetComponent, mode) => { |
|
|
|
paste: async (targetComponent, mode, preserveBindings = false) => { |
|
|
|
let promises = [] |
|
|
|
store.update(state => { |
|
|
|
// Stop if we have nothing to paste
|
|
|
|
@ -536,7 +536,7 @@ export const getFrontendStore = () => { |
|
|
|
const cut = state.componentToPaste.isCut |
|
|
|
|
|
|
|
// immediately need to remove bindings, currently these aren't valid when pasted
|
|
|
|
if (!cut) { |
|
|
|
if (!cut && !preserveBindings) { |
|
|
|
state.componentToPaste = removeBindings(state.componentToPaste) |
|
|
|
} |
|
|
|
|
|
|
|
|