diff options
author | Ven <vendicated@riseup.net> | 2022-11-21 19:25:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 19:25:40 +0100 |
commit | b5bc88c7d441f8d24df70419d7e8e77eaa7f284e (patch) | |
tree | 639781c90df52eae93583a7105e0977fc8634110 /src/components | |
parent | b42b8d755f9ab4e27bc86c1596a03dd0d9c2992b (diff) | |
download | Vencord-b5bc88c7d441f8d24df70419d7e8e77eaa7f284e.tar.gz Vencord-b5bc88c7d441f8d24df70419d7e8e77eaa7f284e.tar.bz2 Vencord-b5bc88c7d441f8d24df70419d7e8e77eaa7f284e.zip |
Settings export/import (#235)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Settings.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index fc25901..e2abff2 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -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 > ); }, { |