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

Object type tabs mockup.

pull/1/head
Stanislaw Adaszewski il y a 4 ans
Parent
révision
d879964fdc
2 fichiers modifiés avec 9 ajouts et 0 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

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

Chargement…
Annuler
Enregistrer