@@ -174,22 +175,36 @@
-
+
-
-
- Показать только найденные
+
+
+
+ Показать только найденные книги
-
- Показать все книги серии
+
+
+ Показать все книги этой серии
+
@@ -206,7 +221,8 @@
-
+
+
Поиск не дал результатов
@@ -605,6 +621,7 @@ class Search {
return;
const curScrollTop = this.$refs.scroller.scrollTop;
+
if (!this.lastScrollTop)
this.lastScrollTop = 0;
if (!this.lastScrollTop2)
@@ -613,7 +630,7 @@ class Search {
if (curScrollTop - this.lastScrollTop > 0) {
this.$refs.toolPanel.style.position = 'relative';
this.$refs.toolPanel.style.top = `${this.lastScrollTop2}px`;
- } else if (curScrollTop - this.lastScrollTop <= 0) {
+ } else {
this.$refs.toolPanel.style.position = 'sticky';
this.$refs.toolPanel.style.top = 0;
this.lastScrollTop2 = curScrollTop;
@@ -775,6 +792,14 @@ class Search {
return this.expandedSeries.indexOf(seriesItem.key) >= 0;
}
+ isFoundSeriesBook(book, subbook) {
+ if (!book.booksSet) {
+ book.booksSet = new Set(book.books.map(b => b.id));
+ }
+
+ return book.booksSet.has(subbook.id);
+ }
+
setSetting(name, newValue) {
this.commit('setSettings', {[name]: _.cloneDeep(newValue)});
}