X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2Ffilemanager%2FFileManager.jsx;h=913f71ac64f03e7e23388f0e8d7a3e34e354fd32;hp=d1e5c9370be0f2e70f09d1160d8019aceb5eba1c;hb=8062ddd9cb3206399b4f88916bccd9e3fa2104c5;hpb=ef3a1f2ff2307664018018f4049ecf1a195e3d32 diff --git a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx index d1e5c9370..913f71ac6 100644 --- a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx +++ b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx @@ -132,7 +132,8 @@ function buildList(self, data) { function contentFolder(context, folder, path, key, inputState, updateFn, sendDownloadFileRequst, deleteFn) { let type = context.props.type; let id = context.props.item.id; - const onboardDropZone = createDropZone.bind(this, FileManagerUploadDropZone.ACTIONS.onboard, '.ComposerAppAddFile.' + path.replace(/\//g, '-'), type, id, path); + let classId = `DZ-${path.replace(/\//g, '-')}`; + const onboardDropZone = createDropZone.bind(this, FileManagerUploadDropZone.ACTIONS.onboard, '.ComposerAppAddFile.' + classId, type, id, path); return (
@@ -170,11 +171,12 @@ class ItemUpload extends React.Component { } render() { let {type, id, path, key, ...props} = this.props; + let classId = `DZ-${path.replace(/\//g, '-')}`; return (
)