IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Bladeren bron

Extended the no default tab effect to All Projects view.

master
Stanislaw Adaszewski 4 jaren geleden
bovenliggende
commit
c1250d77cc
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +3
    -3
      frontend/src/js/page/wb-browse.js

+ 3
- 3
frontend/src/js/page/wb-browse.js Bestand weergeven

@@ -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) }


Laden…
Annuleren
Opslaan