From 7b7146b5029ae419800409a97f418bb6d426b638 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 18 Dec 2022 14:35:40 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=B5=D1=84=D0=BE=D0=BB=D1=82=D0=BD=D1=8B=D1=85?= =?UTF-8?q?=20=D1=81=D0=B5=D1=82=D0=B5=D0=B2=D1=8B=D1=85=20=D0=B1=D0=B8?= =?UTF-8?q?=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B0=20omnireader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/LibsPage/LibsPage.vue | 2 +- client/store/modules/reader.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/Reader/LibsPage/LibsPage.vue b/client/components/Reader/LibsPage/LibsPage.vue index 12f85d1b..9d88f9a6 100644 --- a/client/components/Reader/LibsPage/LibsPage.vue +++ b/client/components/Reader/LibsPage/LibsPage.vue @@ -38,7 +38,7 @@ class LibsPage { i++; } - if (!this.libs) { + if (!this.libs || (this.mode = 'omnireader' && this.libs.mode !== this.mode)) { const defaults = rstore.getLibsDefaults(this.mode); this.commit('reader/setLibs', defaults); } diff --git a/client/store/modules/reader.js b/client/store/modules/reader.js index 455bd16f..3b9e3cc4 100644 --- a/client/store/modules/reader.js +++ b/client/store/modules/reader.js @@ -236,6 +236,7 @@ function getLibsDefaults(mode = 'reader') { openInFrameOnEnter: false, openInFrameOnAdd: false, helpShowed: false, + mode, groups: [ {r: 'http://samlib.ru', s: 'http://samlib.ru', list: [ {l: 'http://samlib.ru', c: 'Журнал "Самиздат"'},