diff --git a/frontend/src/js/component/wb-process-dashboard.js b/frontend/src/js/component/wb-process-dashboard.js index 4ca2513..a251d95 100644 --- a/frontend/src/js/component/wb-process-dashboard.js +++ b/frontend/src/js/component/wb-process-dashboard.js @@ -117,21 +117,32 @@ class WBProcessDashboard extends Component { } componentDidMount() { - this.fetchData(); + if (!this.props.lazy) + this.fetchData(); } componentWillReceiveProps(nextProps) { if (nextProps.parentProcessUuid === this.props.parentProcessUuid) return; + if (this.props.lazy) { + this.setState({ rows: Array(5).fill(Array(6).fill('-')) }); + return; + } + this.props = nextProps; this.fetchData(); } - render({}, { rows }) { + render({ lazy }, { rows }) { return ( - +
+ + { lazy ? ( + { e.preventDefault(); this.fetchData(); } }>Refresh + ) : null } +
); } } diff --git a/frontend/src/js/page/wb-process-view.js b/frontend/src/js/page/wb-process-view.js index f89f712..f4bc3f3 100644 --- a/frontend/src/js/page/wb-process-view.js +++ b/frontend/src/js/page/wb-process-view.js @@ -64,7 +64,7 @@ class WBProcessView extends Component {

Children Dashboard

- +

Common Fields