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
父節點
當前提交
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) }


Loading…
取消
儲存