+
-
-
- {{ foundCountMessage }}
-
+
+ {{ foundCountMessage }}
@@ -271,7 +269,10 @@ const componentOptions = {
if (this.prevList.totalFound != newValue.totalFound) {
this.updatePageCount();
- this.foundCountMessage = this.$refs.list.foundCountMessage;
+ if (this.$refs.list)
+ this.foundCountMessage = this.$refs.list.foundCountMessage;
+ else
+ this.foundCountMessage = '';
}
this.prevList = _.cloneDeep(newValue);
@@ -281,7 +282,7 @@ const componentOptions = {
selectedList(newValue) {
this.selectedListComponent = (route2component[newValue] ? route2component[newValue].component : null);
this.pageCount = 1;
- this.foundCountMessage = '';
+ this.list.totalFound = 0;
if (this.getListRoute() != newValue) {
this.updateRouteQueryFromSearch();
@@ -853,7 +854,7 @@ export default vueComponent(Search);
}
.tool-panel {
- border-bottom: 1px solid black;
+ border-bottom: 1px solid #bbb;
}
.header {
@@ -869,4 +870,8 @@ export default vueComponent(Search);
cursor: pointer;
}
+.separator {
+ border-bottom: 2px solid #ddd;
+ margin: 5px 0 5px 0;
+}
diff --git a/client/components/Search/SeriesList/SeriesList.vue b/client/components/Search/SeriesList/SeriesList.vue
index c91c09d..24b4b00 100644
--- a/client/components/Search/SeriesList/SeriesList.vue
+++ b/client/components/Search/SeriesList/SeriesList.vue
@@ -117,7 +117,7 @@ import _ from 'lodash';
class SeriesList extends BaseList {
get foundCountMessage() {
- return `Всего найден${utils.wordEnding(this.list.totalFound, 4)} ${this.list.totalFound} сери${utils.wordEnding(this.list.totalFound, 1)}`;
+ return `${this.list.totalFound} сери${utils.wordEnding(this.list.totalFound, 1)} найден${utils.wordEnding(this.list.totalFound, 4)}`;
}
isFoundSeriesBook(seriesItem, seriesBook) {
diff --git a/client/components/Search/TitleList/TitleList.vue b/client/components/Search/TitleList/TitleList.vue
index 13d887d..05a019d 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, 7)} ${this.list.totalFound} уникальн${utils.wordEnding(this.list.totalFound, 6)} назван${utils.wordEnding(this.list.totalFound, 3)}`;
+ return `${this.list.totalFound} уникальн${utils.wordEnding(this.list.totalFound, 6)} назван${utils.wordEnding(this.list.totalFound, 3)} найден${utils.wordEnding(this.list.totalFound, 7)}`;
}
async updateTableData() {