Update desktop app to support new persistence config

This commit is contained in:
Igor Katson 2024-08-15 11:39:12 +01:00
parent d77d96bd48
commit 275b3b0185
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
6 changed files with 68 additions and 22 deletions

View file

@ -16,7 +16,7 @@ interface RqbitDesktopConfigTcpListen {
interface RqbitDesktopConfigPersistence {
disable: boolean;
filename: PathLike;
folder: PathLike;
}
interface RqbitDesktopConfigPeerOpts {

View file

@ -130,7 +130,7 @@ export const ConfigModal: React.FC<{
};
const handleToggleChange: React.ChangeEventHandler<HTMLInputElement> = (
e,
e
) => {
const name: string = e.target.name;
const [mainField, subField] = name.split(".", 2);
@ -166,7 +166,7 @@ export const ConfigModal: React.FC<{
text: "Error saving configuration",
details: e,
});
},
}
);
};
@ -292,10 +292,10 @@ export const ConfigModal: React.FC<{
/>
<FormInput
label="Persistence filename"
name="persistence.filename"
label="Persistence folder"
name="persistence.folder"
inputType="text"
value={config.persistence.filename}
value={config.persistence.folder}
onChange={handleInputChange}
disabled={config.persistence.disable}
/>