From af6c57830c45c9c3dbdf5b19324edc86122877be Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 28 Jan 2019 15:29:09 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D1=83=20allowU?= =?UTF-8?q?rlParamBookPos=20=D0=B2=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B9=D0=BA=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/Reader.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 314d2a5a..961ddcbc 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -111,6 +111,10 @@ export default @Component({ this.loadBook({url: newValue, bookPos: this.routeParamPos}); } }, + settings: function(newValue) { + this.allowUrlParamBookPos = newValue.allowUrlParamBookPos; + this.updateRoute(); + }, }, }) class Reader extends Vue { @@ -208,6 +212,10 @@ class Reader extends Vue { return result; } + get settings() { + return this.$store.state.reader.settings; + } + toolBarToggle() { this.commit('reader/setToolBarActive', !this.toolBarActive); this.$root.$emit('resize');