mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: reset default notebook & tag feature if applicable (#8628)
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -514,7 +514,8 @@ export async function resetFeatures() {
|
||||
"disableTrashCleanup",
|
||||
"syncControls",
|
||||
"fullOfflineMode",
|
||||
"appLock"
|
||||
"appLock",
|
||||
"defaultNotebookAndTag"
|
||||
]);
|
||||
if (!features.appLock.isAllowed) {
|
||||
await useKeyStore.getState().disable();
|
||||
@@ -553,4 +554,9 @@ export async function resetFeatures() {
|
||||
|
||||
if (!features.fullOfflineMode.isAllowed)
|
||||
useSettingStore.getState().toggleFullOfflineMode(false);
|
||||
|
||||
if (!features.defaultNotebookAndTag.isAllowed) {
|
||||
db.settings.setDefaultNotebook(undefined);
|
||||
db.settings.setDefaultTag(undefined);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user