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

Added ability hold off refresh in WBProcessListing.

pull/1/head
parent
commit
ba62733c7d
2 changed files with 13 additions and 11 deletions
  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 View File

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

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


Loading…
Cancel
Save