From c6dca616e648a01a0580c242ff836c4083259f77 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 23 Oct 2019 06:44:13 +0000 Subject: [PATCH] Remove jQuery from InlineChannel.vue and JoinChannel.vue. --- client/components/InlineChannel.vue | 3 +-- client/components/JoinChannel.vue | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/components/InlineChannel.vue b/client/components/InlineChannel.vue index 6a0b072e..82edb4f8 100644 --- a/client/components/InlineChannel.vue +++ b/client/components/InlineChannel.vue @@ -18,8 +18,7 @@ export default { ); if (existingChannel) { - const $ = require("jquery"); - $(`#sidebar .chan[data-id="${existingChannel.id}"]`).trigger("click"); + this.$router.push("chan-" + existingChannel.id); } // TODO: Required here because it breaks tests diff --git a/client/components/JoinChannel.vue b/client/components/JoinChannel.vue index 7d0e1669..bf1cc905 100644 --- a/client/components/JoinChannel.vue +++ b/client/components/JoinChannel.vue @@ -65,8 +65,7 @@ export default { ); if (existingChannel) { - const $ = require("jquery"); - $(`#sidebar .chan[data-id="${existingChannel.id}"]`).trigger("click"); + this.$router.push("chan-" + existingChannel.id); } else { const chanTypes = this.network.serverOptions.CHANTYPES; let channel = this.inputChannel;