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!
浏览代码

Object type tabs mockup.

master
父节点
当前提交
d879964fdc
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. +5
    -0
      frontend/src/js/page/wb-browse.js
  2. +4
    -0
      frontend/src/js/widget/wb-tabs.js

+ 5
- 0
frontend/src/js/page/wb-browse.js 查看文件

@@ -4,6 +4,7 @@ import WBNavbar from 'wb-navbar';
import WBProjectListing from 'wb-project-listing';
import WBInlineSearch from 'wb-inline-search';
import WBProjectCrumbs from 'wb-project-crumbs';
import WBTabs from 'wb-tabs';
class WBBrowse extends Component {
render({ ownerUuid, activePage, appCallbacks, appState }) {
@@ -20,12 +21,16 @@ class WBBrowse extends Component {
<WBProjectCrumbs uuid={ ownerUuid } appState={ appState }
onItemClicked={ item => route('/browse/' + item['uuid']) } />
<WBTabs tabs={ [ { 'name': 'Projects', 'isActive': true } ] } />
<WBProjectListing arvHost={ appState.arvHost }
arvToken={ appState.arvToken }
ownerUuid={ ownerUuid }
itemsPerPage="5"
activePage={ Number(activePage || 0) }
onPageChanged={ i => route('/browse/' + (ownerUuid || '') + '/' + i)} />
<WBTabs tabs={ [ { 'name': 'Collections', 'isActive': true }, 'Processes', 'Workflows' ] } />
</div>
);
}


+ 4
- 0
frontend/src/js/widget/wb-tabs.js 查看文件

@@ -30,4 +30,8 @@ class WBTabs extends Component {
}
}
WBTabs.defaultProps = {
'onTabChanged': () => {}
};
export default WBTabs;

正在加载...
取消
保存