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!
Browse Source

Object type tabs mockup.

pull/1/head
parent
commit
d879964fdc
2 changed files with 9 additions and 0 deletions
  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 View File

@@ -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 View File

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

Loading…
Cancel
Save