Добавил настройку blinkCachedLoad
This commit is contained in:
@@ -133,10 +133,8 @@ export default @Component({
|
|||||||
this.loadBook({url: newValue, bookPos: this.routeParamPos});
|
this.loadBook({url: newValue, bookPos: this.routeParamPos});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
settings: function(newValue) {
|
settings: function() {
|
||||||
this.allowUrlParamBookPos = newValue.allowUrlParamBookPos;
|
this.loadSettings();
|
||||||
this.copyFullText = newValue.copyFullText;
|
|
||||||
this.showClickMapPage = newValue.showClickMapPage;
|
|
||||||
this.updateRoute();
|
this.updateRoute();
|
||||||
},
|
},
|
||||||
loaderActive: function(newValue) {
|
loaderActive: function(newValue) {
|
||||||
@@ -198,9 +196,7 @@ class Reader extends Vue {
|
|||||||
this.fullScreenActive = (document.fullscreenElement !== null);
|
this.fullScreenActive = (document.fullscreenElement !== null);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.allowUrlParamBookPos = this.settings.allowUrlParamBookPos;
|
this.loadSettings();
|
||||||
this.copyFullText = this.settings.copyFullText;
|
|
||||||
this.showClickMapPage = this.settings.showClickMapPage;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mounted() {
|
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() {
|
get routeParamPos() {
|
||||||
let result = undefined;
|
let result = undefined;
|
||||||
const q = this.$route.query;
|
const q = this.$route.query;
|
||||||
@@ -738,6 +742,9 @@ class Reader extends Vue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
blinkCachedLoadMessage() {
|
blinkCachedLoadMessage() {
|
||||||
|
if (!this.blinkCachedLoad)
|
||||||
|
return;
|
||||||
|
|
||||||
this.blinkCount = 30;
|
this.blinkCount = 30;
|
||||||
if (!this.inBlink) {
|
if (!this.inBlink) {
|
||||||
this.inBlink = true;
|
this.inBlink = true;
|
||||||
|
|||||||
@@ -255,6 +255,15 @@
|
|||||||
<el-checkbox v-model="showClickMapPage">Показывать области управления кликом</el-checkbox>
|
<el-checkbox v-model="showClickMapPage">Показывать области управления кликом</el-checkbox>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="Подсказка">
|
||||||
|
<el-tooltip :open-delay="500" effect="light">
|
||||||
|
<template slot="content">
|
||||||
|
Мерцать сообщением в строке статуса и на кнопке<br>
|
||||||
|
обновления при загрузке книги из кэша
|
||||||
|
</template>
|
||||||
|
<el-checkbox v-model="blinkCachedLoad">Предупреждать о загрузке из кэша</el-checkbox>
|
||||||
|
</el-tooltip>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="URL">
|
<el-form-item label="URL">
|
||||||
<el-tooltip :open-delay="500" effect="light">
|
<el-tooltip :open-delay="500" effect="light">
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ const settingDefaults = {
|
|||||||
clickControl: true,
|
clickControl: true,
|
||||||
cutEmptyParagraphs: false,
|
cutEmptyParagraphs: false,
|
||||||
addEmptyParagraphs: 0,
|
addEmptyParagraphs: 0,
|
||||||
|
blinkCachedLoad: true,
|
||||||
|
|
||||||
fontShifts: {},
|
fontShifts: {},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user