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!
ソースを参照

Added ability hold off refresh in WBProcessListing.

master
コミット
ba62733c7d
2個のファイルの変更13行の追加11行の削除
  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 ファイルの表示

@@ -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 ファイルの表示

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


読み込み中…
キャンセル
保存