made some features experimental

This commit is contained in:
Myzel394 2023-01-17 23:33:39 +01:00
parent 10e18b17ec
commit ee0682a8b6
3 changed files with 17 additions and 2 deletions

View File

@ -14,7 +14,8 @@
"defaultSuccess": "Erfolgreich übernommen!", "defaultSuccess": "Erfolgreich übernommen!",
"loading": "Lädt...", "loading": "Lädt...",
"actionNotUndoable": "Diese Aktion kann nicht rückgängig gemacht werden!", "actionNotUndoable": "Diese Aktion kann nicht rückgängig gemacht werden!",
"copyError": "Konnte nicht in Zwischenable kopieren. Bitte kopiere den Text manuell." "copyError": "Konnte nicht in Zwischenable kopieren. Bitte kopiere den Text manuell.",
"experimentalFeature": "Diese Funktion ist experimentell und kann Fehler verursachen."
}, },
"routes": { "routes": {

View File

@ -14,7 +14,8 @@
"defaultSuccess": "Success!", "defaultSuccess": "Success!",
"loading": "Loading...", "loading": "Loading...",
"actionNotUndoable": "This action cannot be undone!", "actionNotUndoable": "This action cannot be undone!",
"copyError": "Copying to clipboard did not work. Please copy the text manually." "copyError": "Copying to clipboard did not work. Please copy the text manually.",
"experimentalFeature": "This is an experimental feature."
}, },
"routes": { "routes": {

View File

@ -7,6 +7,7 @@ import React, {ReactElement, useContext} from "react"
import {useMutation} from "@tanstack/react-query" import {useMutation} from "@tanstack/react-query"
import { import {
Alert,
Checkbox, Checkbox,
Collapse, Collapse,
FormControlLabel, FormControlLabel,
@ -220,6 +221,12 @@ export default function AliasesPreferencesForm(): ReactElement {
{(formik.touched.proxyImages && formik.errors.proxyImages) || {(formik.touched.proxyImages && formik.errors.proxyImages) ||
t("relations.alias.settings.proxyImages.helperText")} t("relations.alias.settings.proxyImages.helperText")}
</FormHelperText> </FormHelperText>
<Alert
sx={{width: "fit-content", alignSelf: "end", marginTop: 1}}
severity="warning"
>
{t("general.experimentalFeature")}
</Alert>
</FormGroup> </FormGroup>
<Collapse in={formik.values.proxyImages}> <Collapse in={formik.values.proxyImages}>
<Grid <Grid
@ -349,6 +356,12 @@ export default function AliasesPreferencesForm(): ReactElement {
"relations.alias.settings.expandUrlShorteners.helperText", "relations.alias.settings.expandUrlShorteners.helperText",
)} )}
</FormHelperText> </FormHelperText>
<Alert
sx={{width: "fit-content", alignSelf: "end", marginTop: 1}}
severity="warning"
>
{t("general.experimentalFeature")}
</Alert>
</FormGroup> </FormGroup>
</Grid> </Grid>
</Grid> </Grid>