OpenDTU/webapp/src/components/InterfaceApInfo.vue
2022-12-24 00:01:54 +01:00

35 lines
1.1 KiB
Vue

<template>
<div class="card">
<div class="card-header text-bg-primary">
{{ $t('interfaceapinfo.NetworkInterface') }}
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover table-condensed">
<tbody>
<tr>
<th>{{ $t('interfaceapinfo.IpAddress') }}</th>
<td>{{ networkStatus.ap_ip }}</td>
</tr>
<tr>
<th>{{ $t('interfaceapinfo.MacAddress') }}</th>
<td>{{ networkStatus.ap_mac }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</template>
<script lang="ts">
import type { NetworkStatus } from '@/types/NetworkStatus';
import { defineComponent, type PropType } from 'vue';
export default defineComponent({
props: {
networkStatus: { type: Object as PropType<NetworkStatus>, required: true },
},
});
</script>