From 9e76fe2a76c3421adad7b2bc65448f3a59edc913 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Mon, 10 Feb 2020 17:43:39 +0200 Subject: [PATCH] Fix race condition and remove redundant computed properties. --- client/components/ChannelWrapper.vue | 4 ++++ client/components/NetworkList.vue | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/client/components/ChannelWrapper.vue b/client/components/ChannelWrapper.vue index f8ca0206..25b77ccf 100644 --- a/client/components/ChannelWrapper.vue +++ b/client/components/ChannelWrapper.vue @@ -67,6 +67,10 @@ export default { return this.channel.name; }, click() { + if (this.isFiltering) { + return; + } + this.$root.switchToChannel(this.channel); }, openContextMenu(event) { diff --git a/client/components/NetworkList.vue b/client/components/NetworkList.vue index e04d18d8..fa2e2eb6 100644 --- a/client/components/NetworkList.vue +++ b/client/components/NetworkList.vue @@ -1,5 +1,5 @@