Commit 09f0b2f8 authored by Janis Streib's avatar Janis Streib 🦉

UPD: removed prefill for A-records (closes #195)

parent 9c7d5f54
Pipeline #117862 failed with stages
in 5 minutes and 49 seconds
......@@ -467,27 +467,7 @@ export default {
target_is_singleton: recobj.target_is_singleton_dflt,
target_is_reverse_unique: recobj.target_is_reverse_unique_dflt
}
if (record_type === 'A') {
let sub = null
let multi = false
this.subnets.forEach((item) => {
if (item.type === '4') {
if (sub !== null) {
multi = true
}
sub = item
}
if (sub !== null && !multi) {
const first = ipaddress.ip_net_get_first(sub.cidr)
const last = ipaddress.ip_net_get_last(sub.cidr)
let index = 0
while (first.slice(0, index) === last.slice(0, index)) {
index++
}
this.db_editor_presets.data = first.slice(0, index)
}
})
} else if (record_type === 'AAAA') {
if (record_type === 'AAAA') {
let sub = null
let multi = false
this.subnets.forEach((item) => {
......
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