Работа над ContentsPage

This commit is contained in:
Book Pauk
2020-11-13 18:47:11 +07:00
parent e095c3318b
commit bd1e5485d7
4 changed files with 143 additions and 9 deletions

View File

@@ -616,10 +616,14 @@ class Reader extends Vue {
contentsPageToggle() {
this.contentsPageActive = !this.contentsPageActive;
if (this.contentsPageActive) {
const page = this.$refs.page;
if (this.contentsPageActive && this.activePage == 'TextPage' && page.parsed) {
this.closeAllWindows();
this.$refs.contentsPage.init();
this.contentsPageActive = true;
this.$nextTick(() => {
this.$refs.contentsPage.init(this.mostRecentBook(), page.parsed);
});
} else {
this.contentsPageActive = false;
}