Добавил в настройки параметр showClickMapPage

This commit is contained in:
Book Pauk
2019-02-08 21:27:37 +07:00
parent 3f52e78841
commit 0019b3f94c
3 changed files with 15 additions and 4 deletions

View File

@@ -134,6 +134,7 @@ export default @Component({
settings: function(newValue) {
this.allowUrlParamBookPos = newValue.allowUrlParamBookPos;
this.copyFullText = newValue.copyFullText;
this.showClickMapPage = newValue.showClickMapPage;
this.updateRoute();
},
},
@@ -190,6 +191,7 @@ class Reader extends Vue {
this.allowUrlParamBookPos = this.settings.allowUrlParamBookPos;
this.copyFullText = this.settings.copyFullText;
this.showClickMapPage = this.settings.showClickMapPage;
}
mounted() {
@@ -521,8 +523,8 @@ class Reader extends Vue {
return classResult;
}
async showClickMapPage() {
if (!this.clickMapActive) {
async acivateClickMapPage() {
if (this.showClickMapPage && !this.clickMapActive) {
this.clickMapActive = true;
await this.$refs.clickMapPage.slowDisappear();
this.clickMapActive = false;
@@ -621,7 +623,7 @@ class Reader extends Vue {
progress.hide(); this.progressActive = false;
this.blinkCachedLoadMessage();
await this.showClickMapPage();
await this.acivateClickMapPage();
return;
}
@@ -669,7 +671,7 @@ class Reader extends Vue {
} else
this.stopBlink = true;
await this.showClickMapPage();
await this.acivateClickMapPage();
} catch (e) {
progress.hide(); this.progressActive = false;
this.loaderActive = true;

View File

@@ -234,6 +234,14 @@
<!--------------------------------------------------------------------------->
<el-tab-pane label="Прочее">
<el-form :model="form" size="mini" label-width="120px" @submit.native.prevent>
<el-form-item label="Подсказка">
<el-tooltip :open-delay="500" effect="light">
<template slot="content">
Показывать или нет подсказку при каждой загрузке книги
</template>
<el-checkbox v-model="showClickMapPage">Показывать сектора управления кликом</el-checkbox>
</el-tooltip>
</el-form-item>
<el-form-item label="URL">
<el-tooltip :open-delay="500" effect="light">
<template slot="content">

View File

@@ -158,6 +158,7 @@ const settingDefaults = {
allowUrlParamBookPos: false,
lazyParseEnabled: false,
copyFullText: false,
showClickMapPage: true,
fontShifts: {},
};