Доделки CopyTextPage, в настроки добвлен параметр "copyFullText"

This commit is contained in:
Book Pauk
2019-02-03 20:30:07 +07:00
parent 3a71cbe83c
commit be7eb9269c
4 changed files with 63 additions and 31 deletions

View File

@@ -125,6 +125,7 @@ export default @Component({
},
settings: function(newValue) {
this.allowUrlParamBookPos = newValue.allowUrlParamBookPos;
this.copyFullText = newValue.copyFullText;
this.updateRoute();
},
},
@@ -170,6 +171,7 @@ class Reader extends Vue {
});
this.allowUrlParamBookPos = this.settings.allowUrlParamBookPos;
this.copyFullText = this.settings.copyFullText;
}
mounted() {
@@ -353,7 +355,7 @@ class Reader extends Vue {
this.copyTextActive = true;
this.$nextTick(() => {
this.$refs.copyTextPage.init(this.mostRecentBook().bookPos, page.parsed);
this.$refs.copyTextPage.init(this.mostRecentBook().bookPos, page.parsed, this.copyFullText);
});
} else {
this.searchActive = false;