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

...
Kai Reinhard
15.55.2018 df12a3a8864d167fb300dd09e645dda430d24164
borgbutler-webapp/src/components/views/repos/RepoArchiveListView.jsx
@@ -49,6 +49,13 @@
        })
    };
    redirectToArchive = (archive) => {
        //console.log("Archive: " + archive.id + ", repo: " + this.state.repo.id);
        console.log("context: " + this.context.history);
        this.context.history.pushState(null, '/archives');
        //this.router.transitionTo('/archives/dfsafds'); // , {repoId: this.state.repo.id}, {archiveId: archive.id}
    }
    render = () => {
        let content = undefined;
@@ -103,7 +110,7 @@
                            {repo.archives.map((archive) => {
                                // Return the element. Also pass key
                                return (
                                    <tr key={archive.id}>
                                    <tr key={archive.id} onClick={() => this.redirectToArchive(archive)}>
                                        <td>{archive.archive}</td>
                                        <td>{archive.time}</td>
                                        <td>{archive.id}</td>
@@ -192,6 +199,7 @@
        this.fetchRepo = this.fetchRepo.bind(this);
        this.toggleTab = this.toggleTab.bind(this);
        this.redirectToArchive = this.redirectToArchive.bind(this);
    }
}