1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00
Files
dozzle/assets/components/ContainerViewer/ContainerHealth.vue
2025-04-26 20:35:14 -07:00

27 lines
535 B
Vue

<template>
<div class="inline-flex size-4" :health="health" v-if="health" :title="health">
<cil:check-circle v-if="health == 'healthy'" />
<cil:x-circle v-else-if="health == 'unhealthy'" />
<cil:circle v-else />
</div>
</template>
<script lang="ts" setup>
import { ContainerHealth } from "@/types/Container";
defineProps<{
health: ContainerHealth | undefined;
}>();
</script>
<style scoped>
@reference "@/main.css";
[health="unhealthy"] {
@apply text-red;
}
[health="healthy"] {
@apply text-green;
}
</style>