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

FIX: refactored record data view (closes #250)

parent fb0d41cc
Pipeline #129943 passed with stages
in 4 minutes and 44 seconds
......@@ -22,8 +22,7 @@
</b-badge>
</template>
<template v-slot:cell(data)="data">
<code>{{ data.value }} </code>
<b-badge v-if="!data.item.target_is_singleton" variant="warning">RR-Set</b-badge>
<RRDataView :item="data.item"></RRDataView>
</template>
<template v-slot:cell(actions)="data">
<b-button-group>
......@@ -89,10 +88,12 @@ import RecordService from '@/api-services.gen/dns.record'
import Loading from './Loading'
import transactionutil from '../util/transactionutil'
import FilterInput from '@/components/FilterInput'
import RRDataView from '@/components/RRDataView'
export default {
name: 'FQDNRecordTable',
components: {
RRDataView,
FilterInput,
Loading,
DBEditor
......
<template>
<span>
<code>{{ item.data }} </code>
<b-badge v-if="!item.target_is_singleton" variant="warning">RR-Set</b-badge>
<b-badge v-if="item.target_is_reverse_unique" title="Rückwärts-eindeutig">PTR</b-badge>
</span>
</template>
<script>
export default {
name: 'RRDataView',
props: {
item: {
required: true
}
}
}
</script>
......@@ -294,9 +294,7 @@
{{ item.fqdn_description }}
</b-td>
<b-td>
<code>{{ item.data }} </code>
<b-badge v-if="!item.target_is_singleton" variant="warning">RR-Set</b-badge>
<b-badge v-if="item.target_is_reverse_unique" title="Rückwärts-eindeutig">PTR</b-badge>
<RRDataView :item="item"></RRDataView>
</b-td>
<b-td>
<template v-if="item.ttl != null">{{ item.ttl }}s</template>
......@@ -386,6 +384,7 @@ import RecordService from '@/api-services.gen/dns.record'
import Loading from '../../components/Loading'
import DBEditor from '../../components/DBEditor'
import BCDFreeAddressBlock from '../../components/BCDFreeAddressBlock'
import RRDataView from '../../components/RRDataView'
import transactionutil from '@/util/transactionutil'
import apiutil from '@/util/apiutil'
import EVLogViewer from '@/components/EVLogViewer'
......@@ -394,7 +393,7 @@ import ipaddress from '@/util/ipaddress'
export default {
name: 'BCDRecords',
components: {FilterInput, EVLogViewer, Loading, DBEditor, BCDFreeAddressBlock},
components: {FilterInput, EVLogViewer, Loading, DBEditor, BCDFreeAddressBlock, RRDataView},
data() {
return {
sort_by: {},
......
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