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