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!
Procházet zdrojové kódy

Added ability hold off refresh in WBProcessListing.

pull/1/head
Stanislaw Adaszewski před 4 roky
rodič
revize
ba62733c7d
2 změnil soubory, kde provedl 13 přidání a 11 odebrání
  1. +4
    -1
      frontend/src/js/component/wb-process-listing.js
  2. +9
    -10
      frontend/src/js/page/wb-process-view.js

+ 4
- 1
frontend/src/js/component/wb-process-listing.js Zobrazit soubor

@@ -54,7 +54,10 @@ class WBProcessListing extends Component {
const { arvHost, arvToken } = this.props.appState;
const { requestStates, reqStateMask } = this.state;
const { activePage, itemsPerPage, ownerUuid,
requestingContainerUuid } = this.props;
requestingContainerUuid, waitForNextProps } = this.props;
if (waitForNextProps)
return;
const filters = [
[ 'requesting_container_uuid', '=', requestingContainerUuid ]


+ 9
- 10
frontend/src/js/page/wb-process-view.js Zobrazit soubor

@@ -99,7 +99,7 @@ class WBProcessView extends Component {
componentWillReceiveProps(nextProps) {
this.props = nextProps;
// this.setState({ 'objectUrls': [], 'request': null, 'container': null });
this.setState({ 'objectUrls': [], 'request': null, 'container': null });
this.fetchData();
}
@@ -120,15 +120,14 @@ class WBProcessView extends Component {
<h2>Container Request Fields</h2>
<WBContainerRequestFields app={ app } uuid={ uuid } />
{ container ? ([
<h2>Children</h2>,
<WBProcessListing app={ app }
appState={ app.state }
requestingContainerUuid={ container.uuid }
itemsPerPage="20"
activePage={ Number(page || 0) }
getPageUrl={ page => this.getUrl({ page }) } />
]) : null }
<h2>Children</h2>
<WBProcessListing app={ app }
appState={ app.state }
requestingContainerUuid={ container ? container.uuid : null }
waitForNextProps={ !container }
itemsPerPage="20"
activePage={ Number(page || 0) }
getPageUrl={ page => this.getUrl({ page }) } />
<div>
<a href="/browse">Click here</a>


Načítá se…
Zrušit
Uložit