Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: show correct sync status when sync is disabled

Abdullah Atta31e17c305fa7
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index f893e4518..9cb308c2b 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -48,7 +48,11 @@ class AppStore extends BaseStore {
isSyncEnabled = Config.get("syncEnabled", true);
isRealtimeSyncEnabled = Config.get("isRealtimeSyncEnabled", true);
syncStatus = {
- key: navigator.onLine ? "synced" : "offline",
+ key: navigator.onLine
+ ? Config.get("syncEnabled", true)
+ ? "synced"
+ : "disabled"
+ : "offline",
progress: null,
type: null
};