mirror of
https://github.com/h44z/wg-portal.git
synced 2026-11-20 20:53:40 +01:00
fix(frontend): use text input for peer default routing table (#770)
PeerDefRoutingTable is a string on the backend, but the peer defaults input used type="number", so Vue sent a JSON number and saving the interface failed with "cannot unmarshal number into Go struct field Interface.PeerDefRoutingTable of type string". It also made the value "off" impossible to enter. Use type="text" like the interface routing table field. Fixes #769 Signed-off-by: Jason Wang <vulragrag@gmail.com>
This commit is contained in:
@@ -618,7 +618,7 @@ async function del() {
|
||||
<div class="row">
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label mt-4">{{ $t('modals.interface-edit.routing-table.label') }}</label>
|
||||
<input v-model="formData.PeerDefRoutingTable" class="form-control" :placeholder="$t('modals.interface-edit.routing-table.placeholder')" type="number">
|
||||
<input v-model="formData.PeerDefRoutingTable" class="form-control" :placeholder="$t('modals.interface-edit.routing-table.placeholder')" type="text">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label class="form-label mt-4">{{ $t('modals.interface-edit.defaults.keep-alive.label') }}</label>
|
||||
|
||||
Reference in New Issue
Block a user