Исправление бага offlineModeActive

This commit is contained in:
Book Pauk
2022-12-15 17:53:22 +07:00
parent 9863dc6dd0
commit 0ab73deffd
2 changed files with 5 additions and 2 deletions

View File

@@ -1021,7 +1021,6 @@ class Reader {
offlineModeToggle() { offlineModeToggle() {
this.commit('reader/setOfflineModeActive', !this.offlineModeActive); this.commit('reader/setOfflineModeActive', !this.offlineModeActive);
this.$refs.serverStorage.offlineModeActive = this.offlineModeActive;
} }
settingsToggle() { settingsToggle() {

View File

@@ -204,6 +204,10 @@ class ServerStorage {
return this.$store.state.reader.libsRev; return this.$store.state.reader.libsRev;
} }
get offlineModeActive() {
return this.$store.state.reader.offlineModeActive;
}
checkCurrentProfile() { checkCurrentProfile() {
if (!this.profiles[this.currentProfile]) { if (!this.profiles[this.currentProfile]) {
this.commit('reader/setCurrentProfile', ''); this.commit('reader/setCurrentProfile', '');