Debian Codegraph @

frontend/src/stores/editor.ts

raw
1 import { localStorageSyncedStore } from "../lib/store";
2 import { boolean } from "../lib/validation";
3
4 /** Whether to reload after saving an entry in the slice editor. */
5 export const reloadAfterSavingEntrySlice = localStorageSyncedStore(
6 "reload-after-saving-entry-slice",
7 boolean,
8 () => true,
9 );
10
11 /** Whether to continue (and add another entry) after adding an entry in the AddEntry dialog. */
12 export const addEntryContinue = localStorageSyncedStore(
13 "add-entry-continue",
14 boolean,
15 () => false,
16 );