diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue
index 951a70f..e877e75 100644
--- a/client/components/Search/Search.vue
+++ b/client/components/Search/Search.vue
@@ -74,20 +74,6 @@
-
-
-
-
-
-
- {{ genreNames }}
-
-
-
+
+
+
+ {{ `${(extendedParams ? 'Скрыть' : 'Показать')} дополнительные критерии поиска` }}
+
+
+
+
+
+
+
+
+
+
+ {{ genreNames }}
+
+
+
@@ -222,6 +234,9 @@ const componentOptions = {
},
deep: true,
},
+ extendedParams(newValue) {
+ this.setSetting('extendedParams', newValue);
+ },
limit(newValue) {
this.setSetting('limit', newValue);
@@ -290,7 +305,7 @@ class Search {
selectGenreDialogVisible = false;
selectLangDialogVisible = false;
- pageCount = 1;
+ pageCount = 1;
//input field consts
inputMaxLength = 1000;
@@ -319,6 +334,7 @@ class Search {
abCacheEnabled = true;
langDefault = '';
limit = 20;
+ extendedParams = false;
//stuff
prevList = {};
@@ -345,9 +361,6 @@ class Search {
{label: '1000', value: 1000},
];
- searchResult = {};
- tableData = [];
-
created() {
this.commit = this.$store.commit;
this.api = this.$root.api;
@@ -390,6 +403,7 @@ class Search {
this.search.limit = settings.limit;
+ this.extendedParams = settings.extendedParams;
this.expanded = _.cloneDeep(settings.expanded);
this.expandedSeries = _.cloneDeep(settings.expandedSeries);
this.showCounts = settings.showCounts;
diff --git a/client/store/root.js b/client/store/root.js
index 5f054e6..8ee7ac8 100644
--- a/client/store/root.js
+++ b/client/store/root.js
@@ -3,6 +3,7 @@ const state = {
config: {},
settings: {
accessToken: '',
+ extendedParams: false,
limit: 20,
expandedAuthor: [],
expandedSeries: [],