OpenDTU-old/webapp/src/components/InterfaceApInfo.vue
2022-10-17 20:43:27 +02:00

35 lines
1.0 KiB
Vue

<template>
<div class="card">
<div class="card-header text-white bg-primary">
Network Interface (Access Point)
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover table-condensed">
<tbody>
<tr>
<th>IP Address</th>
<td>{{ networkStatus.ap_ip }}</td>
</tr>
<tr>
<th>MAC Address</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>