diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index bf4bc38..7ef3cdf 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -101,10 +101,9 @@ -
- +
+
-
@@ -150,10 +149,9 @@
-
- +
+
-
@@ -295,6 +293,7 @@ class Search { limit = 50; //stuff + refreshing = false; queryFound = -1; totalFound = 0; bookRowsOnPage = 100; @@ -319,6 +318,10 @@ class Search { created() { this.commit = this.$store.commit; + /*this.refresh = _.debounce(() => { + this.refreshDebounced(); + }, 1000);*/ + this.loadSettings(); } @@ -369,7 +372,6 @@ class Search { for (const g of section.value) if (genre.has(g.value)) result.push(g.name); - } return result.join(', '); @@ -380,6 +382,7 @@ class Search { this.collection = collection[0].trim(); this.projectName = `${this.config.name} v${this.config.version}`; + this.$root.setAppTitle(`Коллекция ${this.collection}`); } showSearchHelp() { @@ -729,9 +732,13 @@ class Search { this.inpxHash = result.inpxHash; this.searchResult = result; - await this.updateGenreTreeIfNeeded(); - await this.updateTableData(); - this.scrollToTop(); + + await utils.sleep(1); + if (!this.queryExecute) { + await this.updateGenreTreeIfNeeded(); + await this.updateTableData(); + this.scrollToTop(); + } } catch (e) { this.$root.stdDialog.alert(e.message, 'Ошибка'); } finally {