|
@@ -111,6 +111,10 @@ export default @Component({
|
|
this.loadBook({url: newValue, bookPos: this.routeParamPos});
|
|
this.loadBook({url: newValue, bookPos: this.routeParamPos});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ settings: function(newValue) {
|
|
|
|
+ this.allowUrlParamBookPos = newValue.allowUrlParamBookPos;
|
|
|
|
+ this.updateRoute();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
})
|
|
})
|
|
class Reader extends Vue {
|
|
class Reader extends Vue {
|
|
@@ -208,6 +212,10 @@ class Reader extends Vue {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ get settings() {
|
|
|
|
+ return this.$store.state.reader.settings;
|
|
|
|
+ }
|
|
|
|
+
|
|
toolBarToggle() {
|
|
toolBarToggle() {
|
|
this.commit('reader/setToolBarActive', !this.toolBarActive);
|
|
this.commit('reader/setToolBarActive', !this.toolBarActive);
|
|
this.$root.$emit('resize');
|
|
this.$root.$emit('resize');
|