From 243f514243245a833234c9a7afd847217854e911 Mon Sep 17 00:00:00 2001 From: Markus Cisler Date: Sun, 13 Jun 2021 01:49:23 +0200 Subject: [PATCH] Only toggle mentions popup if connected to network The top bar is only shown if the user is connected to at least one network. Only then it is possible to open the recent mentions popup. Only toggle the recent mentions popup if the user is connected to at least one network so the popup will not open over the connect view. --- client/components/App.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/App.vue b/client/components/App.vue index ddd537a1..d821ca3c 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -101,7 +101,9 @@ export default { return false; }, toggleMentions() { - eventbus.emit("mentions:toggle"); + if (this.$store.state.networks.length !== 0) { + eventbus.emit("mentions:toggle"); + } }, msUntilNextDay() { // Compute how many milliseconds are remaining until the next day starts