diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js
index 3711d93..206cf0d 100755
--- a/frontend/rollup.config.js
+++ b/frontend/rollup.config.js
@@ -55,7 +55,7 @@ export default {
'node_modules/papaya-viewer/release/current/standard/papaya.css': 'dist/css/papaya.css',
verbose: true
}),
- buble({jsx: 'h'}),
+ buble({jsx: 'h', objectAssign: 'Object.assign'}),
resolve({}),
license({
banner: 'Copyright (C) F. Hoffmann-La Roche AG, 2020.\nAuthor: stanislaw.adaszewski@roche.com\nAll Rights Reserved.',
diff --git a/frontend/src/js/page/wb-browse.js b/frontend/src/js/page/wb-browse.js
index 490974b..d4c2dc5 100644
--- a/frontend/src/js/page/wb-browse.js
+++ b/frontend/src/js/page/wb-browse.js
@@ -146,6 +146,19 @@ class WBBrowse extends Component {
objTypeTab, collectionPage, processPage, workflowPage,
textSearch }, { selected }) {
+ const commonProps = {
+ renderRenameLink: (it, cb) => this.renderRenameLink(it, cb),
+ renderDeleteButton: (it, cb) => this.renderDeleteButton(it, cb),
+ renderSelectionCell: it => this.renderSelectionCell(it),
+ renderSharingButton: it => this.renderSharingButton(it),
+ textSearch,
+ app,
+ appState: app.state,
+ arvHost: app.state.arvHost,
+ arvToken: app.state.arvToken,
+ ownerUuid
+ };
+
return (
@@ -170,19 +183,11 @@ class WBBrowse extends Component {
copyHere={ () => this.copyHere() } />
this.getUrl({ 'activePage': i }) }
- renderRenameLink={ (it, cb) => this.renderRenameLink(it, cb) }
- renderDeleteButton={ (it, cb) => this.renderDeleteButton(it, cb) }
- renderSelectionCell={ it => this.renderSelectionCell(it) }
- renderSharingButton={ it => this.renderSharingButton(it) }
- textSearch={ textSearch } />
+ { ...commonProps } />
{ (mode !== 'browse') ? null : (
this.getUrl({ 'collectionPage': i }) }
- renderRenameLink={ (it, cb) => this.renderRenameLink(it, cb) }
- renderDeleteButton={ (it, cb) => this.renderDeleteButton(it, cb) }
- renderSelectionCell={ it => this.renderSelectionCell(it) }
- renderSharingButton={ it => this.renderSharingButton(it) }
- textSearch={ textSearch } />
+ { ...commonProps } />
) : (objTypeTab === 'process') ? (
- this.route({ 'processPage': i }) }
- renderRenameLink={ (it, cb) => this.renderRenameLink(it, cb) }
- renderDeleteButton={ (it, cb) => this.renderDeleteButton(it, cb) }
- renderSelectionCell={ it => this.renderSelectionCell(it) }
- renderSharingButton={ it => this.renderSharingButton(it) }
- textSearch={ textSearch } />
+ { ...commonProps } />
) : (objTypeTab === 'workflow') ? (
- this.getUrl({ 'workflowPage': i }) }
- renderRenameLink={ (it, cb) => this.renderRenameLink(it, cb) }
- renderDeleteButton={ (it, cb) => this.renderDeleteButton(it, cb) }
- renderSelectionCell={ it => this.renderSelectionCell(it) }
- renderSharingButton={ it => this.renderSharingButton(it) }
- textSearch={ textSearch } />
+ { ...commonProps } />
) : null
}