|
|
@@ -3,6 +3,8 @@ import { Router, route } from 'preact-router'; |
|
|
|
import WBBrowse from 'wb-browse';
|
|
|
|
import WBSignIn from 'wb-sign-in';
|
|
|
|
import WBLandingPage from 'wb-landing-page';
|
|
|
|
import WBProcessView from 'wb-process-view';
|
|
|
|
import arvadosTypeName from 'arvados-type-name';
|
|
|
|
|
|
|
|
class WBApp extends Component {
|
|
|
|
constructor(...args) {
|
|
|
@@ -37,6 +39,16 @@ class WBApp extends Component { |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
breadcrumbClicked(item) {
|
|
|
|
let objectType = arvadosTypeName(item.uuid.split('-')[1]);
|
|
|
|
if (objectType === 'user')
|
|
|
|
route('/browse/' + item.uuid)
|
|
|
|
else if (objectType === 'group' && item.group_class === 'project')
|
|
|
|
route('/browse/' + item.uuid);
|
|
|
|
else if (objectType === 'container_request')
|
|
|
|
route('/process/' + item.uuid)
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Router>
|
|
|
@@ -47,6 +59,8 @@ class WBApp extends Component { |
|
|
|
<WBBrowse path="/browse/:ownerUuid?/:activePage?/:objTypeTab?/:collectionPage?/:processPage?/:workflowPage?"
|
|
|
|
appCallbacks={ this.appCallbacks }
|
|
|
|
appState={ this.appState } />
|
|
|
|
|
|
|
|
<WBProcessView path="/process/:uuid" app={ this } />
|
|
|
|
</Router>
|
|
|
|
);
|
|
|
|
}
|
|
|
|