Fixed mangling hostname when port entered manually

This commit is contained in:
Joel Collins 2019-02-14 15:23:32 +00:00
parent 348eb1b73f
commit 6e0a079c2a

View file

@ -30,6 +30,10 @@ export default {
methods: {
handleSubmit: function(event) {
if (this.hostname.includes(':')) {
this.port = this.computedPort
this.hostname = this.hostname.split(':')[0];
}
// Commit the hostname and port to store
this.$store.commit('changeHost', [
this.hostname,