diff --git a/frontend/src/js/component/wb-project-listing.js b/frontend/src/js/component/wb-project-listing.js index ed07d0c..896522b 100644 --- a/frontend/src/js/component/wb-project-listing.js +++ b/frontend/src/js/component/wb-project-listing.js @@ -18,7 +18,7 @@ class WBProjectListing extends Component { prepareRows(items) { const { app, renderRenameLink, renderDeleteButton, - renderSelectionCell } = this.props; + renderSelectionCell, renderSharingButton } = this.props; return items.map(item => [ renderSelectionCell(item), @@ -39,6 +39,7 @@ class WBProjectListing extends Component { { renderDeleteButton(item, () => this.fetchItems()) } + { renderSharingButton(item) } ) ]); } diff --git a/frontend/src/js/dialog/wb-browse-dialog.js b/frontend/src/js/dialog/wb-browse-dialog.js index 5c91caa..fa9954d 100644 --- a/frontend/src/js/dialog/wb-browse-dialog.js +++ b/frontend/src/js/dialog/wb-browse-dialog.js @@ -42,6 +42,7 @@ class WBBrowseDialog extends Component { this.state.bottomPage = 0; this.state.collectionPath = ''; this.state.textSearch = ''; + this.state.id = ('id' in this.props) ? this.props.id : uuid.v4(); } navigateBack() { @@ -134,10 +135,14 @@ class WBBrowseDialog extends Component { ); } - render({ app, id, selectMany, selectWhat }, + show(callback) { + $('#' + this.state.id).modal(); + } + + render({ app, selectMany, selectWhat }, { history, currentUrl, mode, uuid, topPage, bottomPage, textSearch, - collectionPath }) { + collectionPath, id }) { return (