From 0ab73deffdbc0652c2afb06ad671da6e40e1d787 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Thu, 15 Dec 2022 17:53:22 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B1=D0=B0=D0=B3=D0=B0=20offlineMo?= =?UTF-8?q?deActive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 3 +-- client/components/Reader/ServerStorage/ServerStorage.vue | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) 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', '');