Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: systemSetting in UI changed unexpectedly (#1812)

Athurg Gooth5d06c8093c06
diff --git a/web/src/components/Settings/SystemSection.tsx b/web/src/components/Settings/SystemSection.tsx
index add1c2a5e..4b6f94a2d 100644
--- a/web/src/components/Settings/SystemSection.tsx
+++ b/web/src/components/Settings/SystemSection.tsx
@@ -74,6 +74,7 @@ const SystemSection = () => {
...state,
allowSignUp: value,
});
+ globalStore.setSystemStatus({ allowSignUp: value });
await api.upsertSystemSetting({
name: "allow-signup",
value: JSON.stringify(value),
@@ -197,7 +198,7 @@ const SystemSection = () => {
...state,
memoDisplayWithUpdatedTs: value,
});
- globalStore.setSystemStatus({ disablePublicMemos: value });
+ globalStore.setSystemStatus({ memoDisplayWithUpdatedTs: value });
await api.upsertSystemSetting({
name: "memo-display-with-updated-ts",
value: JSON.stringify(value),