|
|
@@ -173,7 +173,7 @@ class WBBrowse extends Component { |
|
|
|
};
|
|
|
|
|
|
|
|
const { currentUser } = app.state;
|
|
|
|
const atHome = (ownerUuid === currentUser.uuid);
|
|
|
|
const noDefaultTab = (!ownerUuid || ownerUuid === currentUser.uuid);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
@@ -209,7 +209,7 @@ class WBBrowse extends Component { |
|
|
|
|
|
|
|
{ (mode !== 'browse') ? null : (
|
|
|
|
<WBTabs tabs={ [
|
|
|
|
{ 'id': 'collection', 'name': 'Collections', 'isActive': ((!objTypeTab && !atHome) || objTypeTab === 'collection') },
|
|
|
|
{ 'id': 'collection', 'name': 'Collections', 'isActive': ((!objTypeTab && !noDefaultTab) || objTypeTab === 'collection') },
|
|
|
|
{ 'id': 'process', 'name': 'Processes', 'isActive': (objTypeTab === 'process') },
|
|
|
|
{ 'id': 'workflow', 'name': 'Workflows', 'isActive': (objTypeTab === 'workflow') } ] }
|
|
|
|
onTabChanged={ tab => this.route({ 'objTypeTab': tab['id'] }) } />
|
|
|
@@ -217,7 +217,7 @@ class WBBrowse extends Component { |
|
|
|
|
|
|
|
{
|
|
|
|
(mode !== 'browse') ? null :
|
|
|
|
((!objTypeTab && !atHome) || objTypeTab === 'collection') ? (
|
|
|
|
((!objTypeTab && !noDefaultTab) || objTypeTab === 'collection') ? (
|
|
|
|
<WBCollectionListing
|
|
|
|
itemsPerPage="20"
|
|
|
|
activePage={ Number(collectionPage || 0) }
|
|
|
|