mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/TransferSettings: only export storedSettings instead of all settings
This commit is contained in:
parent
71204054c7
commit
299d1867a2
1 changed files with 6 additions and 2 deletions
|
@ -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" }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue