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>


불러오는 중...
취소
저장