Добавил настройку blinkCachedLoad
This commit is contained in:
@@ -133,10 +133,8 @@ export default @Component({
|
||||
this.loadBook({url: newValue, bookPos: this.routeParamPos});
|
||||
}
|
||||
},
|
||||
settings: function(newValue) {
|
||||
this.allowUrlParamBookPos = newValue.allowUrlParamBookPos;
|
||||
this.copyFullText = newValue.copyFullText;
|
||||
this.showClickMapPage = newValue.showClickMapPage;
|
||||
settings: function() {
|
||||
this.loadSettings();
|
||||
this.updateRoute();
|
||||
},
|
||||
loaderActive: function(newValue) {
|
||||
@@ -198,9 +196,7 @@ class Reader extends Vue {
|
||||
this.fullScreenActive = (document.fullscreenElement !== null);
|
||||
});
|
||||
|
||||
this.allowUrlParamBookPos = this.settings.allowUrlParamBookPos;
|
||||
this.copyFullText = this.settings.copyFullText;
|
||||
this.showClickMapPage = this.settings.showClickMapPage;
|
||||
this.loadSettings();
|
||||
}
|
||||
|
||||
mounted() {
|
||||
@@ -219,6 +215,14 @@ class Reader extends Vue {
|
||||
})();
|
||||
}
|
||||
|
||||
loadSettings() {
|
||||
const settings = this.settings;
|
||||
this.allowUrlParamBookPos = settings.allowUrlParamBookPos;
|
||||
this.copyFullText = settings.copyFullText;
|
||||
this.showClickMapPage = settings.showClickMapPage;
|
||||
this.blinkCachedLoad = settings.blinkCachedLoad;
|
||||
}
|
||||
|
||||
get routeParamPos() {
|
||||
let result = undefined;
|
||||
const q = this.$route.query;
|
||||
@@ -738,6 +742,9 @@ class Reader extends Vue {
|
||||
}
|
||||
|
||||
blinkCachedLoadMessage() {
|
||||
if (!this.blinkCachedLoad)
|
||||
return;
|
||||
|
||||
this.blinkCount = 30;
|
||||
if (!this.inBlink) {
|
||||
this.inBlink = true;
|
||||
|
||||
Reference in New Issue
Block a user