diff --git a/backend/srv.py b/backend/srv.py index 711e099..b1bae77 100644 --- a/backend/srv.py +++ b/backend/srv.py @@ -9,7 +9,7 @@ class RequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) # RequestHandler, self).do_GET() -httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4443), RequestHandler) +httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 4445), RequestHandler) httpd.socket = ssl.wrap_socket (httpd.socket, certfile='/pstore/home/adaszews/workspace/arvados-workbench-advanced/backend/server.pem', server_side=True) httpd.serve_forever() diff --git a/frontend/src/js/dialog/wb-browse-dialog-collection-content.js b/frontend/src/js/dialog/wb-browse-dialog-collection-content.js index e2a1d98..b7131d5 100644 --- a/frontend/src/js/dialog/wb-browse-dialog-collection-content.js +++ b/frontend/src/js/dialog/wb-browse-dialog-collection-content.js @@ -73,9 +73,9 @@ class WBBrowseDialogCollectionContent extends Component { const numPages = Math.ceil(listing.length / itemsPerPage); const rows = listing.slice(page * itemsPerPage, (page + 1) * itemsPerPage).map(it => [ - ((it[0] === 'd' && selectWhat === 'directory') || - (it[0] === 'f' && selectWhat === 'file')) ? - makeSelectionCell(collectionUuid + collectionPath + '/' + it[1]) : + ((it[0] === 'd' && [].concat(selectWhat).indexOf('directory') !== -1) || + (it[0] === 'f' && [].concat(selectWhat).indexOf('file') !== -1)) ? + makeSelectionCell(collectionUuid + collectionPath + '/' + it[1] + (it[0] === 'd' ? '/' : '')) : null, it[0] === 'd' ? ( { diff --git a/frontend/src/js/dialog/wb-browse-dialog-collection-list.js b/frontend/src/js/dialog/wb-browse-dialog-collection-list.js index 9b26ab6..0536cb1 100644 --- a/frontend/src/js/dialog/wb-browse-dialog-collection-list.js +++ b/frontend/src/js/dialog/wb-browse-dialog-collection-list.js @@ -21,7 +21,7 @@ class WBBrowseDialogCollectionList extends Component { prepareRows(items) { const { navigate, selectWhat, makeSelectionCell } = this.props; return items.map(it => [ - (selectWhat === 'directory' ? makeSelectionCell(it.uuid) : null), + ([].concat(selectWhat).indexOf('directory') !== -1 ? makeSelectionCell(it.uuid + '/') : null), ( { e.preventDefault(); navigate('/browse-dialog/content/' + it.uuid + '////'); } }>{ it.name } diff --git a/frontend/src/js/dialog/wb-browse-dialog-project-list.js b/frontend/src/js/dialog/wb-browse-dialog-project-list.js index fe0294a..641db66 100644 --- a/frontend/src/js/dialog/wb-browse-dialog-project-list.js +++ b/frontend/src/js/dialog/wb-browse-dialog-project-list.js @@ -21,7 +21,7 @@ class WBBrowseDialogProjectList extends Component { prepareRows(items) { const { navigate, selectWhat, makeSelectionCell } = this.props; - return items.map(it => (selectWhat === 'owner' ? [ makeSelectionCell(it.uuid, 'project') ] : []).concat([ + return items.map(it => ([].concat(selectWhat).indexOf('owner') !== -1 ? [ makeSelectionCell(it.uuid, 'project') ] : []).concat([ ( { e.preventDefault(); @@ -86,8 +86,8 @@ class WBBrowseDialogProjectList extends Component { render({ app, navigate, page, selectWhat }, { numPages, rows }) { return (
- { e.preventDefault(); - this.browseDialogRef.current.show(isFile ? 'file' : 'directory', isArray, + this.browseDialogRef.current.show( + [].concat(isFile ? 'file' : []).concat(isDirectory ? 'directory' : []), + isArray, v => { this.state.inputs[inputSpec.id] = JSON.stringify(v); this.setState({}); @@ -212,8 +219,7 @@ class WBLaunchWorkflowPage extends Component { for (let k in this.state.inputs) { try { let val = jsyaml.safeLoad(this.state.inputs[k]); - const { isFile } = inputSpecInfo(main.inputs.find(a => (a.id === k))); - val = uuidsToCwl(val, isFile); + val = uuidsToCwl(val); k = k.split('/').slice(1).join('/'); inputs[k] = (val === undefined ? null : val); } catch (exc) {