OpenDTU-old/webapp/src/components/WifiApInfo.vue
Bernhard Kirchen aef0efcfae webapp: apply card-table class to info view cards
the cards in all information views still used a div.card-body around the
table, which added a margin on all sides of the table. to achieve a
unified look, these cards and tables now look the same as the inverter
channel cards.
2024-10-29 14:56:06 +01:00

46 lines
1.5 KiB
Vue

<template>
<CardElement :text="$t('wifiapinfo.WifiApInfo')" textVariant="text-bg-primary" table>
<div class="table-responsive">
<table class="table table-hover table-condensed">
<tbody>
<tr>
<th>{{ $t('wifiapinfo.Status') }}</th>
<td>
<StatusBadge
:status="networkStatus.ap_status"
true_text="wifiapinfo.Enabled"
false_text="wifiapinfo.Disabled"
/>
</td>
</tr>
<tr>
<th>{{ $t('wifiapinfo.Ssid') }}</th>
<td>{{ networkStatus.ap_ssid }}</td>
</tr>
<tr>
<th>{{ $t('wifiapinfo.Stations') }}</th>
<td>{{ $n(networkStatus.ap_stationnum, 'decimal') }}</td>
</tr>
</tbody>
</table>
</div>
</CardElement>
</template>
<script lang="ts">
import CardElement from '@/components/CardElement.vue';
import StatusBadge from './StatusBadge.vue';
import type { NetworkStatus } from '@/types/NetworkStatus';
import { defineComponent, type PropType } from 'vue';
export default defineComponent({
components: {
CardElement,
StatusBadge,
},
props: {
networkStatus: { type: Object as PropType<NetworkStatus>, required: true },
},
});
</script>