2f635069e0
Co-Authored-By: Tim Miller-Williams <timmw@users.noreply.github.com>
32 lines
491 B
Vue
32 lines
491 B
Vue
<template>
|
|
<NetworkForm
|
|
:handle-submit="handleSubmit"
|
|
:defaults="$store.state.serverConfiguration.defaults"
|
|
: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>
|