[PAGES-390] Update UI 6 ContentClipboard implementations Created: 14/Oct/19 Updated: 23/Aug/22 |
|
| Status: | Open |
| Project: | Magnolia pages module |
| Component/s: | None |
| Affects Version/s: | 6.2 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Neutral |
| Reporter: | Rishab Dhar | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoR: |
Empty
|
| Team: |
| Description |
|
The info.magnolia.ui.contentapp.action.clipboard.JcrClipboard has been updated to paste items into the destination node only if all the source items can be copied into the destination @Override public boolean canPasteInto(final Item destination) { if (!destination.isNode()) { return false; } return items.stream().allMatch(item -> canPasteInto(item, destination)); } The same behavior should be applied to other implementations of `info.magnolia.ui.framework.ContentClipboard` |