We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
props
1 parent d420fc1 commit 763dbfcCopy full SHA for 763dbfc
site/frontend/src/pages/status_new/collector.vue
@@ -5,10 +5,6 @@ const props = defineProps<{
5
collector: CollectorConfigAndWork;
6
}>();
7
8
-/* trick typescript into thinking props is used. We _have_ to define it else
9
- * `collector` in the below code is untyped and thus fails to compile */
10
-<any>props;
11
-
12
function statusClass(c: CollectorConfig): string {
13
return c.isActive ? "active" : "inactive";
14
}
@@ -20,7 +16,7 @@ function statusClass(c: CollectorConfig): string {
20
16
<div class="collector-name">
21
17
<span>
22
18
<strong class="collector-sm-padding-right">{{
23
- collector.config.name
19
+ props.collector.config.name
24
}}</strong>
25
<span
26
class="collector-sm-padding-left-right collector-left-divider"
0 commit comments