File tree Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Expand file tree Collapse file tree 2 files changed +40
-10
lines changed Original file line number Diff line number Diff line change
1
+ import { computed } from "vue" ;
2
+ import { useIsSupported } from "@/composables/serviceSemVer" ;
3
+ import { environment } from "@/composables/serviceServiceControl" ;
4
+
5
+ export const minimumSCVersionForThroughput = "6.6.0" ;
6
+ const isAllMessagesSupported = computed ( ( ) => useIsSupported ( environment . sc_version , minimumSCVersionForThroughput ) ) ;
7
+
8
+ export default isAllMessagesSupported ;
Original file line number Diff line number Diff line change 2
2
import { licenseStatus } from " ../composables/serviceLicense" ;
3
3
import LicenseExpired from " ../components/LicenseExpired.vue" ;
4
4
import AuditList from " @/components/audit/AuditList.vue" ;
5
+ import isAllMessagesSupported , { minimumSCVersionForThroughput } from " @/components/audit/isAllMessagesSupported.ts" ;
6
+ import ConditionalRender from " @/components/ConditionalRender.vue" ;
5
7
</script >
6
8
7
9
<template >
8
- <LicenseExpired />
9
- <template v-if =" ! licenseStatus .isExpired " >
10
- <div class =" container" >
11
- <div class =" row title" >
12
- <div class =" col-12" >
13
- <h1 >All Messages</h1 >
10
+ <ConditionalRender :supported =" isAllMessagesSupported" >
11
+ <template #unsupported >
12
+ <div class =" not-supported" >
13
+ <p >
14
+ The minimum version of ServiceControl required to enable this feature is
15
+ <span > {{ minimumSCVersionForThroughput }} </span >.
16
+ </p >
17
+ <div >
18
+ <a class =" btn btn-default btn-primary" href =" https://particular.net/downloads" target =" _blank" >Update ServiceControl to latest version</a >
14
19
</div >
15
20
</div >
16
- <div class =" row" >
17
- <AuditList />
21
+ </template >
22
+ <LicenseExpired />
23
+ <template v-if =" ! licenseStatus .isExpired " >
24
+ <div class =" container" >
25
+ <div class =" row title" >
26
+ <div class =" col-12" >
27
+ <h1 >All Messages</h1 >
28
+ </div >
29
+ </div >
30
+ <div class =" row" >
31
+ <AuditList />
32
+ </div >
18
33
</div >
19
- </div >
20
- </template >
34
+ </template >
35
+ </ConditionalRender >
21
36
</template >
22
37
23
38
<style scoped>
@@ -34,4 +49,11 @@ import AuditList from "@/components/audit/AuditList.vue";
34
49
flex : 0 ;
35
50
min-height : fit-content ;
36
51
}
52
+
53
+ .not-supported {
54
+ display : flex ;
55
+ align-items : center ;
56
+ justify-content : center ;
57
+ flex-direction : column ;
58
+ }
37
59
</style >
You can’t perform that action at this time.
0 commit comments