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!
Parcourir la source

Make no tab open by default in the listing of home directory, since this is the one that usually contains a mess.

pull/1/head
Stanislaw Adaszewski il y a 4 ans
Parent
révision
aade2d9b16
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. +5
    -2
      frontend/src/js/page/wb-browse.js

+ 5
- 2
frontend/src/js/page/wb-browse.js Voir le fichier

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


Chargement…
Annuler
Enregistrer