Commit efa235f2 authored by Janis Streib's avatar Janis Streib 🦉

UPD: fixup

parent d628830b
Pipeline #130093 passed with stages
in 4 minutes and 37 seconds
......@@ -11,7 +11,7 @@
</b-td>
<b-td colspan="2" style="padding: 0"></b-td>
</b-tr>
<b-tr :key="'block_lower_' + item.data + '_' + j" v-else variant="warning"
<b-tr :key="'block_lower_' + item.data + '_' + index" v-else variant="warning"
style="padding: 0 !important; height: 1rem;">
<b-td colspan="3" style="padding: 0 0 5px 0"></b-td>
<b-td style="padding: 2px 0 5px 0.75rem">
......@@ -31,6 +31,9 @@ export default {
block: {
required: true
},
index: {
required: true
},
item: {
required: true
},
......
......@@ -266,7 +266,7 @@
v-for="(blk,j) in reverseIfDesc(record_type, upperIfAsc(record_type)[item.data].containing_blocks)">
<BCDFreeAddressBlock :key="'block_upper_' + item.data + '_' + j"
:create_item_func="createItem" :block="blk"
:item="item"></BCDFreeAddressBlock>
:item="item" :index="j"></BCDFreeAddressBlock>
</template>
</template>
<b-tr
......@@ -339,7 +339,7 @@
v-for="(blk,j) in reverseIfDesc(record_type, lowerIfAsc(record_type)[item.data].containing_blocks)">
<BCDFreeAddressBlock :key="'block_lower_' + item.data + '_' + j"
:create_item_func="createItem" :block="blk"
:item="item"></BCDFreeAddressBlock>
:item="item" :index="j"></BCDFreeAddressBlock>
</template>
</template>
</template>
......@@ -611,7 +611,7 @@ export default {
this.db_editor_presets.data = sub.cidr.split('/')[0]
}
}
if (record_type === 'A') {
if (record_type === 'A' && (!data)) {
let res_ip = null
for (const bl of this.reverseIfAsc('A', this.asc_v4_blocklist)) {
for (const b of bl.containing_blocks) {
......@@ -744,7 +744,7 @@ export default {
}
last = cur
}
window.console.debug('cur vs max: ' + cur + ' ' + hard_maximum)
window.console.debug(this.asc_v4_blocklist)
if (cur !== hard_maximum) {
// The last fucking block
const blk = {
......
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