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.
This commit is contained in:
Markus Cisler 2021-06-13 01:49:23 +02:00
parent a93ccd680f
commit 243f514243

View File

@ -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