Skip to content

Commit

Permalink
Merge pull request #273 from ezsystems/EZP-28639-fix-moving-to-anothe…
Browse files Browse the repository at this point in the history
…r-location

EZP-28639: [UDW] GUI allows you to try to move content item to another content item which is not a container
  • Loading branch information
Łukasz Serwatka authored Dec 22, 2017
2 parents 4c8c321 + 714e81b commit 1415422
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bundle/Resources/public/js/scripts/udw/move.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@
input.value = items[0].id;
form.submit();
};
const canSelectContent = ({item}, callback) => callback(item.ContentInfo.Content.ContentTypeInfo.isContainer);
const onCancel = () => closeUDW();
const openUDW = (event) => {
event.preventDefault();

ReactDOM.render(React.createElement(eZ.modules.UniversalDiscovery, {
window.ReactDOM.render(window.React.createElement(window.eZ.modules.UniversalDiscovery, {
onConfirm,
onCancel,
canSelectContent,
confirmLabel: 'Move to location',
title: 'Select destination',
multiple: false,
Expand Down

0 comments on commit 1415422

Please sign in to comment.