diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index a5accfec..d9bda086 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -805,7 +805,7 @@ class Reader { } get offlineModeActive() { - return this.reader.offlineModeActive; + return this.reader.offlineModeActive; } mostRecentBook() { @@ -1021,7 +1021,6 @@ class Reader { offlineModeToggle() { this.commit('reader/setOfflineModeActive', !this.offlineModeActive); - this.$refs.serverStorage.offlineModeActive = this.offlineModeActive; } settingsToggle() { diff --git a/client/components/Reader/ServerStorage/ServerStorage.vue b/client/components/Reader/ServerStorage/ServerStorage.vue index c7a2b99d..fb985a9a 100644 --- a/client/components/Reader/ServerStorage/ServerStorage.vue +++ b/client/components/Reader/ServerStorage/ServerStorage.vue @@ -204,6 +204,10 @@ class ServerStorage { return this.$store.state.reader.libsRev; } + get offlineModeActive() { + return this.$store.state.reader.offlineModeActive; + } + checkCurrentProfile() { if (!this.profiles[this.currentProfile]) { this.commit('reader/setCurrentProfile', '');