Commit d2248c4f authored by janis.streib's avatar janis.streib 🦉
Browse files

ADD: even better prefill for legacy blaming badges

parent adec97cd
Pipeline #138976 passed with stages
in 4 minutes and 42 seconds
...@@ -178,7 +178,9 @@ ...@@ -178,7 +178,9 @@
</b-td> </b-td>
</b-tr> </b-tr>
<b-tr> <b-tr>
<b-th>Gateways (geschätzt anhand von VLAN-Interfaces. <a href="https://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/264">Nicht immer korrekt.</a>)</b-th> <b-th>Gateways (geschätzt anhand von VLAN-Interfaces. <a
href="https://git.scc.kit.edu/scc-net/netvs/netvs-core/-/issues/264">Nicht immer korrekt.</a>)
</b-th>
<b-td> <b-td>
<code v-for="g in gateways" v-bind:key="g.ip_addr">{{ g.ip_addr }}<br/></code> <code v-for="g in gateways" v-bind:key="g.ip_addr">{{ g.ip_addr }}<br/></code>
</b-td> </b-td>
...@@ -320,7 +322,7 @@ ...@@ -320,7 +322,7 @@
</b-td> </b-td>
<b-td> <b-td>
<RRDataView :item="item"></RRDataView> <RRDataView :item="item"></RRDataView>
<b-badge href="#" @click="createItem('AAAA', '', item.fqdn)" <b-badge href="#" @click="createItem('AAAA', item.data, item.fqdn)"
v-if="has_v4 && has_v6 && record_type == 'A' && !(item.target_ipaddr in dhcp_ip_addrs) && !fqdnHasAAAA(item.fqdn)" v-if="has_v4 && has_v6 && record_type == 'A' && !(item.target_ipaddr in dhcp_ip_addrs) && !fqdnHasAAAA(item.fqdn)"
variant="danger">Kein variant="danger">Kein
AAAA-Record! AAAA-Record!
...@@ -683,7 +685,11 @@ export default { ...@@ -683,7 +685,11 @@ export default {
} }
}) })
if (sub !== null && !multi) { if (sub !== null && !multi) {
this.db_editor_presets.data = sub.cidr.split('/')[0] const split = sub.cidr.split('/')
this.db_editor_presets.data = split[0]
if (split[1] === '64') {
this.db_editor_presets.data += data
}
} }
} }
if (record_type === 'A' && (!data)) { if (record_type === 'A' && (!data)) {
......
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