diff --git a/src/components/ConnectionMenu.vue b/src/components/ConnectionMenu.vue index eebd028..8fb9c61 100644 --- a/src/components/ConnectionMenu.vue +++ b/src/components/ConnectionMenu.vue @@ -84,7 +84,7 @@ export default { // open Connections.vue menu this.$parent.$parent.$parent.$refs.connectionMenu.open(this.config.connectionName); // open connection - this.$parent.$parent.$parent.openConnection(this.config.connectionName); + this.$parent.$parent.$parent.openConnection(); } else { @@ -97,7 +97,7 @@ export default { // open Connections.vue menu this.$parent.$parent.$parent.$refs.connectionMenu.open(this.config.connectionName); // open connection - this.$parent.$parent.$parent.openConnection(this.config.connectionName, () => { + this.$parent.$parent.$parent.openConnection(() => { this.$bus.$emit('openCli', this.client, this.config.connectionName); }); } diff --git a/src/rawCommand.js b/src/rawCommand.js index a5a9e2d..852b454 100644 --- a/src/rawCommand.js +++ b/src/rawCommand.js @@ -10,7 +10,7 @@ export default { return this.message.clientEmpty; } - const operation = params[0]; + const operation = params[0] ? params[0].toLowerCase() : ''; if (!operation || typeof client[operation] != 'function') { return this.message.unknownCommand;