mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 17:43:08 -04:00
Settings export/import (#235)
This commit is contained in:
parent
b42b8d755f
commit
b5bc88c7d4
2 changed files with 141 additions and 0 deletions
|
@ -20,6 +20,7 @@ import { useSettings } from "../api/settings";
|
|||
import { ChangeList } from "../utils/ChangeList";
|
||||
import IpcEvents from "../utils/IpcEvents";
|
||||
import { useAwaiter } from "../utils/misc";
|
||||
import { downloadSettingsBackup, uploadSettingsBackup } from "../utils/settingsSync";
|
||||
import { Alerts, Button, Card, Forms, Margins, Parser, React, Switch } from "../webpack/common";
|
||||
import DonateButton from "./DonateButton";
|
||||
import ErrorBoundary from "./ErrorBoundary";
|
||||
|
@ -136,6 +137,23 @@ export default ErrorBoundary.wrap(function Settings() {
|
|||
>
|
||||
Get notified about new Updates
|
||||
</Switch>}
|
||||
|
||||
<Forms.FormDivider />
|
||||
<Forms.FormTitle tag="h5">Settings Sync</Forms.FormTitle>
|
||||
<Flex>
|
||||
<Button
|
||||
onClick={uploadSettingsBackup}
|
||||
size={Button.Sizes.SMALL}
|
||||
>
|
||||
Import Settings
|
||||
</Button>
|
||||
<Button
|
||||
onClick={downloadSettingsBackup}
|
||||
size={Button.Sizes.SMALL}
|
||||
>
|
||||
Export Settings
|
||||
</Button>
|
||||
</Flex>
|
||||
</Forms.FormSection >
|
||||
);
|
||||
}, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue