File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/Frontend/src/views/throughputreport/setup Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { onMounted , ref } from " vue" ;
2
+ import { computed , onMounted , ref } from " vue" ;
3
3
import ThroughputConnectionSettings from " @/resources/ThroughputConnectionSettings" ;
4
4
import throughputClient from " @/views/throughputreport/throughputClient" ;
5
5
import { useIsMonitoringEnabled } from " @/composables/serviceServiceControlUrls" ;
@@ -16,11 +16,18 @@ const settingsInfo = ref<ThroughputConnectionSettings | null>(null);
16
16
onMounted (async () => {
17
17
settingsInfo .value = await throughputClient .setting ();
18
18
});
19
+
20
+ const needsConfiguration = computed (() => {
21
+ const broker = settingsInfo .value ?.broker_settings ?.length ?? 0 ;
22
+ const monitoring = settingsInfo .value ?.monitoring_settings ?.length ?? 0 ;
23
+ const serviceControl = settingsInfo .value ?.service_control_settings ?.length ?? 0 ;
24
+ return broker > 0 || (monitoring > 0 && useIsMonitoringEnabled ()) || serviceControl > 0 ;
25
+ });
19
26
</script >
20
27
21
28
<template >
22
29
<div class =" row" >
23
- <p v-if =" (settingsInfo?.broker_settings.length ?? 0 > 0) || ((settingsInfo?.monitoring_settings.length ?? 0 > 0) && useIsMonitoringEnabled()) || (settingsInfo?.service_control_settings.length ?? 0 > 0) " >
30
+ <p v-if =" needsConfiguration " >
24
31
In order for ServicePulse to collect usage data from {{ store.transportNameForInstructions() }} you need to configure the below settings.<br />
25
32
There are two configuration options, as environment variables or directly in the
26
33
<a href =" https://docs.particular.net/servicecontrol/creating-config-file" ><code >ServiceControl.exe.config</code ></a > file.
You can’t perform that action at this time.
0 commit comments