From 79f85f362abb307449a8c31d6f0e3076f6ac1494 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 27 Nov 2022 20:23:43 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B0=20=D0=BA=D0=BD=D0=B8=D0=B3=20=D0=B2=20=D1=81?= =?UTF-8?q?=D0=B5=D1=80=D0=B8=D0=B8=20(=D1=80=D0=B0=D0=B7=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=20"=D0=90=D0=B2=D1=82=D0=BE=D1=80=D1=8B")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Search/AuthorList/AuthorList.vue | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/client/components/Search/AuthorList/AuthorList.vue b/client/components/Search/AuthorList/AuthorList.vue index a3e177f..d456d03 100644 --- a/client/components/Search/AuthorList/AuthorList.vue +++ b/client/components/Search/AuthorList/AuthorList.vue @@ -25,7 +25,7 @@
{{ getBookCount(item) }} -
+
@@ -54,6 +54,10 @@
Серия: {{ book.series }}
+ +
+ {{ getSeriesBookCount(book) }} +
@@ -184,6 +188,22 @@ class AuthorList extends BaseList { return `(${result})`; } + getSeriesBookCount(book) { + let result = ''; + if (!this.showCounts || book.type != 'series') + return result; + + let count = book.seriesBooks.length; + result = `${count}`; + if (book.allBooksLoaded) { + if (book.showAllBooks) + result = `${book.allBooksLoaded.length}`; + result += `/${book.allBooksLoaded.length}`; + } + + return `(${result})`; + } + async expandAuthor(item) { this.$emit('listEvent', {action: 'ignoreScroll'});