mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
31 lines
484 B
Vue
31 lines
484 B
Vue
<template>
|
|
<NetworkForm
|
|
:handle-submit="handleSubmit"
|
|
:defaults="$root.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>
|