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!
Procházet zdrojové kódy

Extended the no default tab effect to All Projects view.

pull/1/head
Stanislaw Adaszewski před 4 roky
rodič
revize
c1250d77cc
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      frontend/src/js/page/wb-browse.js

+ 3
- 3
frontend/src/js/page/wb-browse.js Zobrazit soubor

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


Načítá se…
Zrušit
Uložit