Files
romm/frontend/src/components/Settings/General/TaskStatus/TaskWatcher.vue
2024-01-09 00:55:43 +01:00

35 lines
766 B
Vue

<script setup lang="ts">
import type { Heartbeat } from "@/stores/heartbeat";
defineProps<{ watcher: Heartbeat["WATCHER"] }>();
</script>
<template>
<v-col
cols="12"
md="4"
sm="4"
lg="4"
:class="{
'status-item d-flex': true,
disabled: !watcher?.ENABLED,
}"
>
<v-icon
:class="watcher?.ENABLED ? 'text-romm-accent-1' : ''"
:icon="
watcher?.ENABLED ? 'mdi-file-check-outline' : 'mdi-file-remove-outline'
"
/>
<div class="ml-3">
<span
class="font-weight-bold text-body-1"
:class="watcher?.ENABLED ? 'text-romm-accent-1' : ''"
>{{ watcher?.TITLE }}</span
>
<p class="mt-1">
{{ watcher?.MESSAGE }}
</p>
</div>
</v-col>
</template>