2019-03-01 13:29:00 +00:00
|
|
|
<template>
|
|
|
|
<NetworkForm
|
|
|
|
:handle-submit="handleSubmit"
|
2019-11-02 19:40:59 +00:00
|
|
|
:defaults="$store.state.serverConfiguration.defaults"
|
2019-03-01 13:29:00 +00:00
|
|
|
:disabled="disabled"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const socket = require("../../js/socket");
|
|
|
|
|
|
|
|
import NetworkForm from "../NetworkForm.vue";
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: "Connect",
|
|
|
|
components: {
|
|
|
|
NetworkForm,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
disabled: false,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
handleSubmit(data) {
|
|
|
|
this.disabled = true;
|
|
|
|
socket.emit("network:new", data);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|