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

...
Kai Reinhard
22.50.2019 11c7cd42cabf4c5392ca96ba13c71c1b037846cf
...
1 files modified
7 ■■■■ changed files
borgbutler-webapp/src/components/views/repos/ConfigureRepoPage.jsx 7 ●●●● patch | view | raw | blame | history
borgbutler-webapp/src/components/views/repos/ConfigureRepoPage.jsx
@@ -111,19 +111,16 @@
            ['passphrase', 'Passphrase (not recommended)']
        ];
        let repoPlaceHolder = 'Enter the repo used by Borg.';
        if (this.state.mode === 'initNewRepo') {
            if (this.state.localRemote === 'local') {
                repoPlaceHolder = 'Enter the local path of the repo home dir.';
            } else {
        if (this.state.mode === 'initNewRepo' && this.state.localRemote === 'remote') {
                repoPlaceHolder = 'Enter the remote path of the repo, such as user@hostname:backup.';
            }
        }
        let repoFieldLength = '10';
        let browseButton = null;
        if (this.state.localRemote === 'local') {
            repoFieldLength = '9';
            browseButton = <FormButton onClick={null}
                                       hint={'Browse local backup directory.'}>Browse</FormButton>
            repoPlaceHolder = 'Enter or browse the local path of the repo home dir used by Borg.';
        }
        return <React.Fragment>
            <PageHeader>