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!
Selaa lähdekoodia

Extended the no default tab effect to All Projects view.

pull/1/head
Stanislaw Adaszewski 4 vuotta sitten
vanhempi
commit
c1250d77cc
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +3
    -3
      frontend/src/js/page/wb-browse.js

+ 3
- 3
frontend/src/js/page/wb-browse.js Näytä tiedosto

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


Loading…
Peruuta
Tallenna