web/TransferSettings: only export storedSettings instead of all settings

This commit is contained in:
dumbmoron 2024-07-28 07:46:15 +00:00
parent 71204054c7
commit 299d1867a2
No known key found for this signature in database

View file

@ -1,7 +1,11 @@
<script lang="ts"> <script lang="ts">
import { t } from "$lib/i18n/translations"; import { t } from "$lib/i18n/translations";
import { createDialog } from "$lib/dialogs"; import { createDialog } from "$lib/dialogs";
import settings, { updateSetting, loadFromString, } from "$lib/state/settings"; import {
storedSettings,
updateSetting,
loadFromString
} from "$lib/state/settings";
import ActionButton from "$components/buttons/ActionButton.svelte"; import ActionButton from "$components/buttons/ActionButton.svelte";
@ -65,7 +69,7 @@
const exportSettings = () => { const exportSettings = () => {
const blob = new Blob( const blob = new Blob(
[ JSON.stringify($settings, null, 2) ], [ JSON.stringify($storedSettings, null, 2) ],
{ type: "application/json" } { type: "application/json" }
); );