forked from voxpupuli/openvoxview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventCountBlock.vue
More file actions
36 lines (33 loc) · 1.06 KB
/
EventCountBlock.vue
File metadata and controls
36 lines (33 loc) · 1.06 KB
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
36
<script setup lang="ts">
import { PuppetEventCount } from 'src/puppet/models/puppet-event-count';
const eventCount = defineModel('event_count', {
type: PuppetEventCount,
required: true,
});
</script>
<template>
<div class="row no-wrap">
<div class="col q-mr-sm event bg-negative rounded-borders text-center content-center">
{{ eventCount.failures }}
<q-tooltip>{{ $t('LABEL_FAILURE', 2) }}</q-tooltip>
</div>
<div class="col q-mr-sm event bg-positive rounded-borders text-center content-center">
{{ eventCount.successes }}
<q-tooltip>{{ $t('LABEL_SUCCESS', 2) }}</q-tooltip>
</div>
<div class="col q-mr-sm event bg-primary rounded-borders text-center content-center">
{{ eventCount.skips }}
<q-tooltip>{{ $t('LABEL_SKIP', 2) }}</q-tooltip>
</div>
<div class="col event bg-grey rounded-borders text-center content-center">
{{ eventCount.noops }}
<q-tooltip>{{ $t('LABEL_NOOP', 2) }}</q-tooltip>
</div>
</div>
</template>
<style scoped>
.event {
min-width: 32px;
min-height: 32px;
}
</style>