Pass the svelte check for graphs

This commit is contained in:
Henrik Giesel 2021-04-15 01:12:10 +02:00
parent e3a3ca3f25
commit efc867815a
2 changed files with 4 additions and 2 deletions

View file

@ -17,7 +17,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export let sourceData: pb.BackendProto.GraphsOut;
import * as tr2 from "anki/i18n";
export let preferences: PreferenceStore;
export let preferences: PreferenceStore<pb.BackendProto.GraphPreferences>;
let { cardCountsSeparateInactive, browserLinksSupported } = preferences;
const dispatch = createEventDispatcher<SearchEventMap>();

View file

@ -38,7 +38,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
): Promise<void> {
await postRequest(
"/_anki/setGraphPreferences",
new TextDecoder().decode(
pb.BackendProto.GraphPreferences.encode(prefs).finish()
)
);
}