Embedded job monitor displays now only jobs of current repo.
| | |
| | | let pageHeader = ''; |
| | | |
| | | if (this.state.isFetching) { |
| | | content = <JobMonitorPanel/>; |
| | | content = <JobMonitorPanel repo={this.state.repoId} />; |
| | | } else if (this.state.failed) { |
| | | content = <ErrorAlert |
| | | title={'Cannot load Repositories'} |
| | |
| | | <TabContent activeTab={this.state.activeTab}> |
| | | <TabPane tabId={'1'}> |
| | | <FileListPanel |
| | | repoId={this.state.repoId} |
| | | archiveId={archive.id} |
| | | archiveShortInfoList={archive.archiveShortInfoList} |
| | | /> |
| | |
| | | let breadcrumb = undefined; |
| | | |
| | | if (this.state.isFetching) { |
| | | content = <JobMonitorPanel />; |
| | | content = <JobMonitorPanel repo={this.props.repoId} />; |
| | | } else if (this.state.failed) { |
| | | content = <ErrorAlert |
| | | title={'Cannot load Archive file list'} |
| | |
| | | failed: false |
| | | }); |
| | | fetch(getRestServiceUrl('jobs', { |
| | | repo: this.props.repo, |
| | | testMode: this.state.testMode |
| | | }), { |
| | | method: 'GET', |
| | |
| | | } |
| | | |
| | | JobMonitorPanel.propTypes = { |
| | | embedded: PropTypes.bool |
| | | embedded: PropTypes.bool, |
| | | repo: PropTypes.string |
| | | }; |
| | | |
| | | JobMonitorPanel.defaultProps = { |
| | | embedded: true |
| | | embedded: true, |
| | | repo: null |
| | | }; |
| | | |
| | | |
| | |
| | | let pageHeader = ''; |
| | | |
| | | if (this.state.isFetching) { |
| | | content = <JobMonitorPanel />; |
| | | content = <JobMonitorPanel repo={this.state.id} />; |
| | | } else if (this.state.failed) { |
| | | content = <ErrorAlert |
| | | title={'Cannot load Repositories'} |