X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fsrc%2Fsrc%2Fcomponents%2Ffilemanager%2FFileManager.jsx;h=3833ab4515781667c2721eaa8ff2c5c040430a6c;hb=119e39d96483d5cec756be95cc0cb735fb6f9a74;hp=9772ca8625fac50d3faea51df6fdd9ca8d464000;hpb=8f1f42ce0339e356a170742ae44d261104cf530f;p=osm%2FUI.git diff --git a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx index 9772ca862..3833ab451 100644 --- a/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx +++ b/skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx @@ -183,6 +183,7 @@ function contentFile(context, file, path, key, deleteFn) { const name = stripPath(file.name, path); const id = context.props.item.id; const type = context.props.type; + const downloadHost = API_SERVER.match('localhost') || API_SERVER.match('127.0.0.1') ? `${window.location.protocol}//${window.location.hostname}` : API_SERVER; //{`${window.location.protocol}//${API_SERVER}:4567/api/package${type}/${id}/${path}/${name}`} return (
@@ -192,7 +193,7 @@ function contentFile(context, file, path, key, deleteFn) { {file.status && (file.status == 'IN_PROGRESS' || file.status == 'DOWNLOADING' ) ? : file.status }
- {name} + {name}
X