Commit 46ee3229 authored by Johannes Zellner's avatar Johannes Zellner

Do not allow to modify the netmask

parent 7a215909
......@@ -31,10 +31,9 @@
<el-dialog title="Settings" :visible.sync="settings.visible" width="30%">
<el-form ref="form" :model="settings.data" :rules="settings.rules" label-position="left" label-width="180px" size="small">
<el-form-item label="Network Address" prop="address">
<el-input v-model="settings.data.address"></el-input>
</el-form-item>
<el-form-item label="Netmask" prop="netmask">
<el-input v-model="settings.data.netmask"></el-input>
<el-input v-model="settings.data.address">
<template slot="append"> / 24</template>
</el-input>
</el-form-item>
<el-form-item label="DNS Server" prop="dnsServer">
<el-input v-model="settings.data.dnsServer"></el-input>
......
......@@ -207,6 +207,9 @@
onSettingsSave () {
this.settings.busy = true;
// hardcode netmask for now
this.settings.data.netmask = '255.255.255.0';
superagent.post('/api/settings', { settings: this.settings.data }).end((error, result) => {
this.settings.busy = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment