forked from voxpupuli/openvoxview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReportStatus.vue
More file actions
35 lines (32 loc) · 921 Bytes
/
ReportStatus.vue
File metadata and controls
35 lines (32 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script setup lang="ts">
import StatusButton from 'components/StatusButton.vue';
import { type PropType } from 'vue';
import { type PuppetReport } from 'src/puppet/models/puppet-report';
import EventCountBlock from 'components/EventCountBlock.vue';
const report = defineModel('report', {
type: Object as PropType<PuppetReport>,
required: true,
});
</script>
<template>
<div class="row no-wrap">
<StatusButton
class="col-auto q-mr-sm"
:status="report.status"
:hash="report.hash"
:certname="report.certname"
/>
<div
class="col event bg-grey-7 rounded-borders text-center content-center"
>
{{ report.getMetricsValue('resources', 'total') }}
<q-tooltip>{{ $t('LABEL_RESOURCE', 2) }}</q-tooltip>
</div>
</div>
<EventCountBlock class="q-mt-sm" :event_count="report.getEventCounts()" />
</template>
<style scoped>
.event {
min-width: 32px;
}
</style>