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!
Просмотр исходного кода

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 4 лет назад
Родитель
Сommit
aade2d9b16
1 измененных файлов: 5 добавлений и 2 удалений
  1. +5
    -2
      frontend/src/js/page/wb-browse.js

+ 5
- 2
frontend/src/js/page/wb-browse.js Просмотреть файл

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


Загрузка…
Отмена
Сохранить