From f582c34a7250a5d408e14f6ea03016a16ecfaace Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Mon, 24 Oct 2022 19:31:50 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=BE=D0=B5=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Search/Search.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index cb2acc0..ddc41c6 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -188,8 +188,10 @@ const componentOptions = { DivBtn }, watch: { - config() { + config(newValue) { this.makeProjectName(); + if (newValue.dbConfig) + this.list.inpxHash = newValue.dbConfig.inpxHash; }, settings() { this.loadSettings(); @@ -718,6 +720,10 @@ class Search { } async updateGenreTreeIfNeeded() { + if (this.genreTreeUpdating) + return; + + this.genreTreeUpdating = true; try { if (this.genreTreeInpxHash !== this.list.inpxHash) { let result; @@ -748,6 +754,8 @@ class Search { } } catch (e) { this.$root.stdDialog.alert(e.message, 'Ошибка'); + } finally { + this.genreTreeUpdating = false; } } }