mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Pass the svelte check for graphs
This commit is contained in:
parent
e3a3ca3f25
commit
efc867815a
2 changed files with 4 additions and 2 deletions
|
@ -17,7 +17,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
export let sourceData: pb.BackendProto.GraphsOut;
|
export let sourceData: pb.BackendProto.GraphsOut;
|
||||||
import * as tr2 from "anki/i18n";
|
import * as tr2 from "anki/i18n";
|
||||||
export let preferences: PreferenceStore;
|
export let preferences: PreferenceStore<pb.BackendProto.GraphPreferences>;
|
||||||
|
|
||||||
let { cardCountsSeparateInactive, browserLinksSupported } = preferences;
|
let { cardCountsSeparateInactive, browserLinksSupported } = preferences;
|
||||||
const dispatch = createEventDispatcher<SearchEventMap>();
|
const dispatch = createEventDispatcher<SearchEventMap>();
|
||||||
|
|
|
@ -38,7 +38,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
await postRequest(
|
await postRequest(
|
||||||
"/_anki/setGraphPreferences",
|
"/_anki/setGraphPreferences",
|
||||||
pb.BackendProto.GraphPreferences.encode(prefs).finish()
|
new TextDecoder().decode(
|
||||||
|
pb.BackendProto.GraphPreferences.encode(prefs).finish()
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue