[FEATURE] Adjusted Creation options & Fixed RCON Formatting

This commit is contained in:
Dunemask 2024-01-24 09:32:27 -07:00
parent e660465a59
commit a8928e249c
5 changed files with 30 additions and 31 deletions

View file

@ -6,7 +6,7 @@ export default function BackupHostOption(props) {
<TextField
label="Backup Host"
onChange={onChange}
value={value}
value={value ?? ""}
helperText="Example: s3.mydomain.com"
FormHelperTextProps={{ sx: { ml: 0 } }}
required

View file

@ -5,7 +5,7 @@ export default function BackupIdOption(props) {
return (
<TextField
label="S3 Access Key ID"
value={value}
value={value ?? ""}
onChange={onChange}
helperText="Example: s3-access-key-id"
FormHelperTextProps={{ sx: { ml: 0 } }}

View file

@ -1,10 +1,11 @@
import TextField from "@mui/material/TextField";
export default function BackupKeyOption(props) {
const { onChange } = props;
const { value, onChange } = props;
return (
<TextField
label="S3 Access Key"
value={value ?? ""}
onChange={onChange}
helperText="Example: s3-access-key"
FormHelperTextProps={{ sx: { ml: 0 } }}

View file

@ -22,7 +22,7 @@ export default class RconSocket {
onRconError(v) {
this.rconLive = false;
console.log("Server sent" + v);
console.log("Server sent: ", v);
}
onConnect() {

View file

@ -117,9 +117,7 @@ export default function CreateCoreOptions() {
sx={{ mr: "auto" }}
/>
)}
{backupEnabled &&
spec.storage !==
0(
{backupEnabled && spec.storage !== 0 && (
<FormControl
fullWidth
sx={{ mt: "2rem", display: "flex", gap: ".5rem" }}
@ -142,7 +140,7 @@ export default function CreateCoreOptions() {
onChange={coreUpdate("backupKey")}
/>
<BackupIntervalOption onChange={coreUpdate("backupInterval")} />
</FormControl>,
</FormControl>
)}
<Button onClick={upsertSpec} variant="contained">