From 4fae5b5a3556b70757d67c58884629f70ef7ac2c Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Thu, 9 Mar 2023 10:23:14 +0300 Subject: [PATCH 1/2] fix filters reset on page change --- frontend/src/views/Match.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Match.vue b/frontend/src/views/Match.vue index f60d548a..5edfa4f8 100644 --- a/frontend/src/views/Match.vue +++ b/frontend/src/views/Match.vue @@ -183,10 +183,10 @@ export default { const index = this.matches.source.findIndex((obj) => obj.id === data.id); if (index !== -1) this.matches.source[index] = data; }); - this.emitter.on('paginate', (value) => { + this.emitter.on('paginate', async (value) => { this.pagination.temp = value; this.clear(['source', 'selected', 'disabled', 'loaded']); - this.get().matches(); + await this.get().matches({ filters: false }); }); }, methods: { From f53b45e1dbf7e334caaa411a8e49446d7e098b3e Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Thu, 9 Mar 2023 14:11:37 +0300 Subject: [PATCH 2/2] fix filters on auto-update --- frontend/src/views/Match.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/Match.vue b/frontend/src/views/Match.vue index 5edfa4f8..99c8727f 100644 --- a/frontend/src/views/Match.vue +++ b/frontend/src/views/Match.vue @@ -134,7 +134,7 @@ export default { this.headerHeight = this.$refs.header.getHeight(); if (this.socket) { this.socket.on('recognize', (/* message */) => { - if (this.socketEnabled) this.get().matches(); + if (this.socketEnabled) this.get().matches({ filters: false }); }); } this.get().matches();