File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/ServicePulse.Host/vue/src Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ export function useIsMonitoringDisabled() {
77 return monitoringUrl . value === null || monitoringUrl . value === "" || monitoringUrl . value === "!" ;
88}
99
10+ export function useIsMonitoringEnabled ( ) {
11+ return ! useIsMonitoringDisabled ( ) ;
12+ }
13+
1014export function useFetchFromServiceControl ( suffix ) {
1115 return fetch ( serviceControlUrl . value + suffix ) ;
1216}
Original file line number Diff line number Diff line change 22import { ref , onMounted } from " vue" ;
33import { licenseStatus } from " ../composables/serviceLicense.js" ;
44import { connectionState , monitoringConnectionState } from " ../composables/serviceServiceControl" ;
5- import { useIsMonitoringDisabled } from " ../composables/serviceServiceControlUrls" ;
5+ import { useIsMonitoringEnabled } from " ../composables/serviceServiceControlUrls" ;
66import { useRedirects } from " ../composables/serviceRedirects.js" ;
77import ExclamationMark from " ../components/ExclamationMark.vue" ;
88
@@ -46,7 +46,7 @@ onMounted(() => {
4646 <h5 v-if =" !licenseStatus.isExpired" :class =" { active: subIsActive('connections') }" class =" nav-item" >
4747 <RouterLink :to =" { name: 'connections' }" >
4848 Connections
49- <template v-if =" connectionState .unableToConnect || (monitoringConnectionState .unableToConnect && ! useIsMonitoringDisabled ())" >
49+ <template v-if =" connectionState .unableToConnect || (monitoringConnectionState .unableToConnect && useIsMonitoringEnabled ())" >
5050 <span ><i class =" fa fa-exclamation-triangle" ></i ></span >
5151 </template >
5252 </RouterLink >
You can’t perform that action at this time.
0 commit comments