mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
06.02.2019 d8422665712f4e8b4a65be584a6d1924519f0181
Embedded job monitor displays now only jobs of current repo.
4 files modified
14 ■■■■■ changed files
borgbutler-webapp/src/components/views/archives/ArchiveView.jsx 3 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 2 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx 7 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx 2 ●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/ArchiveView.jsx
@@ -63,7 +63,7 @@
        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'}
@@ -101,6 +101,7 @@
                <TabContent activeTab={this.state.activeTab}>
                    <TabPane tabId={'1'}>
                        <FileListPanel
                            repoId={this.state.repoId}
                            archiveId={archive.id}
                            archiveShortInfoList={archive.archiveShortInfoList}
                        />
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -80,7 +80,7 @@
        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'}
borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx
@@ -32,6 +32,7 @@
            failed: false
        });
        fetch(getRestServiceUrl('jobs', {
            repo: this.props.repo,
            testMode: this.state.testMode
        }), {
            method: 'GET',
@@ -121,11 +122,13 @@
}
JobMonitorPanel.propTypes = {
    embedded: PropTypes.bool
    embedded: PropTypes.bool,
    repo: PropTypes.string
};
JobMonitorPanel.defaultProps = {
    embedded: true
    embedded: true,
    repo: null
};
borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx
@@ -65,7 +65,7 @@
        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'}