From 911ee3f2d77bdfa5db7701925a742a3ae1d86ab4 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 14 Oct 2022 20:05:14 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20=D1=81?= =?UTF-8?q?=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20"=D1=87=D0=B8=D1=82=D0=B0?= =?UTF-8?q?=D1=82=D1=8C"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/BookView/BookView.vue | 7 ++----- client/components/Search/Search.vue | 9 +++++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/client/components/Search/BookView/BookView.vue b/client/components/Search/BookView/BookView.vue index 6a16fe4..89e4a32 100644 --- a/client/components/Search/BookView/BookView.vue +++ b/client/components/Search/BookView/BookView.vue @@ -49,7 +49,7 @@ -
+
(читать)
@@ -82,6 +82,7 @@ class BookView { book: Object, genreTree: Array, showAuthor: Boolean, + showReadLink: Boolean, titleColor: { type: String, default: 'text-blue-10'}, }; @@ -101,10 +102,6 @@ class BookView { this.showDeleted = settings.showDeleted; } - get config() { - return this.$store.state.config; - } - get settings() { return this.$store.state.settings; } diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index a66f00d..1d3e1ef 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -185,12 +185,13 @@ v-for="subbook in book.allBooks" :key="subbook.key" :book="subbook" :genre-tree="genreTree" show-author + :show-read-link="showReadLink" :title-color="isFoundSeriesBook(book, subbook) ? 'text-blue-10' : 'text-red'" @book-event="bookEvent" />
- +
- + @@ -527,6 +528,10 @@ class Search { return result.join(', '); } + get showReadLink() { + return this.config.bookReadLink != '' || this.liberamaReady; + } + openReleasePage() { window.open('https://github.com/bookpauk/inpx-web', '_blank'); }