Remove jQuery from InlineChannel.vue and JoinChannel.vue.

This commit is contained in:
Richard Lewis 2019-10-23 06:44:13 +00:00 committed by Pavel Djundik
parent c393dd1a11
commit c6dca616e6
2 changed files with 2 additions and 4 deletions

View File

@ -18,8 +18,7 @@ export default {
); );
if (existingChannel) { if (existingChannel) {
const $ = require("jquery"); this.$router.push("chan-" + existingChannel.id);
$(`#sidebar .chan[data-id="${existingChannel.id}"]`).trigger("click");
} }
// TODO: Required here because it breaks tests // TODO: Required here because it breaks tests

View File

@ -65,8 +65,7 @@ export default {
); );
if (existingChannel) { if (existingChannel) {
const $ = require("jquery"); this.$router.push("chan-" + existingChannel.id);
$(`#sidebar .chan[data-id="${existingChannel.id}"]`).trigger("click");
} else { } else {
const chanTypes = this.network.serverOptions.CHANTYPES; const chanTypes = this.network.serverOptions.CHANTYPES;
let channel = this.inputChannel; let channel = this.inputChannel;