Skip to content

Commit

Permalink
fix error correction experimental warning, and use a badge to emphasi…
Browse files Browse the repository at this point in the history
…ze it's experimental nature
  • Loading branch information
jasoryeh committed Jun 27, 2024
1 parent 8ca76b3 commit c4bf2fe
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/components/SetupRepository.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { SetupRepositorySFTP } from './SetupRepositorySFTP';
import { SetupRepositoryToken } from './SetupRepositoryToken';
import { SetupRepositoryWebDAV } from './SetupRepositoryWebDAV';
import { toAlgorithmOption } from '../utils/uiutil';
import Badge from "react-bootstrap/Badge";

const supportedProviders = [
{ provider: "filesystem", description: "Local Directory or NAS", component: SetupRepositoryFilesystem },
Expand Down Expand Up @@ -406,6 +407,12 @@ export class SetupRepository extends Component {
<option value="5">5%</option>
<option value="10">10%</option>
</Form.Control>
<Form.Text sm={8} className="text-muted form-text">
<Badge>Experimental</Badge>&nbsp;Error correction can help protect from certain
kinds of data corruption due to spontaneous bit flips in the storage
media. <a href="https://kopia.io/docs/advanced/ecc/" target="_blank" rel="noreferrer">Click here to
learn more.</a>
</Form.Text>
</Form.Group>
<Form.Group as={Col}>
<Form.Label className="required">Error Correction Algorithm</Form.Label>
Expand All @@ -421,15 +428,6 @@ export class SetupRepository extends Component {
</Form.Control>
</Form.Group>
</Row>
<Row>
<Col></Col>
<Col sm={8} className="text-muted">
[EXPERIMENTAL] Error correction can help protect from certain
kinds of data corruption due to spontaneous bit flips in the storage
media. <a href="https://kopia.io/docs/advanced/ecc/" target="_blank" rel="noreferrer">Click here to
learn more.</a>
</Col>
</Row>
{this.overrideUsernameHostnameRow()}
<Row style={{ marginTop: "1rem" }}>
<Form.Group as={Col}>
Expand Down

0 comments on commit c4bf2fe

Please sign in to comment.