diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue
index 3c6042b..951a70f 100644
--- a/client/components/Search/Search.vue
+++ b/client/components/Search/Search.vue
@@ -49,7 +49,7 @@
{{ search.author }}
@@ -58,7 +58,7 @@
{{ search.series }}
@@ -67,7 +67,7 @@
{{ search.title }}
@@ -76,7 +76,7 @@
@@ -90,7 +90,7 @@
@@ -187,7 +187,7 @@ import _ from 'lodash';
const route2component = {
'author': {component: 'AuthorList', label: 'Авторы'},
'series': {component: 'SeriesList', label: 'Серии'},
- 'book': {component: 'TitleList', label: 'Книги'},
+ 'title': {component: 'TitleList', label: 'Книги'},
};
const componentOptions = {
@@ -452,6 +452,13 @@ class Search {
return result;
}
+ inputBgColor(inp) {
+ if (inp === this.selectedList)
+ return 'white';
+ else
+ return 'yellow-1';
+ }
+
async updateListFromRoute(to) {
const newPath = to.path;
let newList = this.getListRoute(newPath);
diff --git a/client/components/Search/TitleList/TitleList.vue b/client/components/Search/TitleList/TitleList.vue
index d9c0376..018becd 100644
--- a/client/components/Search/TitleList/TitleList.vue
+++ b/client/components/Search/TitleList/TitleList.vue
@@ -43,7 +43,7 @@ import _ from 'lodash';
class TitleList extends BaseList {
get foundCountMessage() {
- return `Найден${utils.wordEnding(this.list.totalFound, 4)} ${this.list.totalFound} уникальн${utils.wordEnding(this.list.totalFound, 6)} назван${utils.wordEnding(this.list.totalFound, 3)}`;
+ return `Найден${utils.wordEnding(this.list.totalFound, 7)} ${this.list.totalFound} уникальн${utils.wordEnding(this.list.totalFound, 6)} назван${utils.wordEnding(this.list.totalFound, 3)}`;
}
async updateTableData() {
diff --git a/client/router.js b/client/router.js
index c1a0204..24cbe4d 100644
--- a/client/router.js
+++ b/client/router.js
@@ -7,7 +7,7 @@ const myRoutes = [
['/', Search],
['/author', Search],
['/series', Search],
- ['/book', Search],
+ ['/title', Search],
['/:pathMatch(.*)*', null, null, '/'],
];
diff --git a/client/share/utils.js b/client/share/utils.js
index 0cfc4b3..849b2e0 100644
--- a/client/share/utils.js
+++ b/client/share/utils.js
@@ -42,6 +42,7 @@ export function wordEnding(num, type = 0) {
['о', 'а', 'о', 'о', 'о', 'о', 'о', 'о', 'о', 'о'],
['ок', 'ка', 'ки', 'ки', 'ки', 'ок', 'ок', 'ок', 'ок', 'ок'],
['ых', 'ое', 'ых', 'ых', 'ых', 'ых', 'ых', 'ых', 'ых', 'ых'],
+ ['о', 'о', 'о', 'о', 'о', 'о', 'о', 'о', 'о', 'о'],
];
const deci = num % 100;
if (deci > 10 && deci < 20) {