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

Fin Reinhard
22.27.2019 910bf7b1c1e58c1b8dbe2ae7aeb362af5788a932
added some comments
2 files modified
8 ■■■■■ changed files
borgbutler-webapp/src/components/views/archives/BreadcrumbPath.jsx 7 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx 1 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/archives/BreadcrumbPath.jsx
@@ -2,6 +2,8 @@
import {Link, Route} from 'react-router-dom';
import {BreadcrumbItem} from 'reactstrap';
// Attention: Recursive Call
// https://reacttraining.com/react-router/web/example/recursive-paths
function BreadcrumbPath({match}) {
    return (
        <React.Fragment>
@@ -13,11 +15,6 @@
            <Route
                path={`${match.url}/:path`}
                component={BreadcrumbPath}
                /*
                render={props =>
                    <BreadcrumbPath {...props} match={match} changeCurrentDirectory={changeCurrentDirectory} />
                }
                */
            />
        </React.Fragment>
    )
borgbutler-webapp/src/components/views/archives/FileListPanel.jsx
@@ -40,6 +40,7 @@
    }
    handleURLChange = location => {
        // Replacing matched URL(archiveId, repoId) and removing trailing slashes
        this.changeCurrentDirectory(location.pathname.replace(this.props.match.url, '').replace(/^\/|\/$/g, ''));
    };