|
1 | 1 | <script setup lang="ts">
|
2 |
| -import { licenseStatus } from "../composables/serviceLicense"; |
3 |
| -import LicenseExpired from "../components/LicenseExpired.vue"; |
4 | 2 | import AuditList from "@/components/audit/AuditList.vue";
|
5 | 3 | import isAllMessagesSupported, { minimumSCVersionForAllMessages } from "@/components/audit/isAllMessagesSupported.ts";
|
6 | 4 | import ConditionalRender from "@/components/ConditionalRender.vue";
|
| 5 | +import ServiceControlAvailable from "@/components/ServiceControlAvailable.vue"; |
| 6 | +import LicenseNotExpired from "@/components/LicenseNotExpired.vue"; |
7 | 7 | </script>
|
8 | 8 |
|
9 | 9 | <template>
|
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> {{ minimumSCVersionForAllMessages }} </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> |
19 |
| - </div> |
20 |
| - </div> |
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> |
| 10 | + <ServiceControlAvailable> |
| 11 | + <LicenseNotExpired> |
| 12 | + <ConditionalRender :supported="isAllMessagesSupported"> |
| 13 | + <template #unsupported> |
| 14 | + <div class="not-supported"> |
| 15 | + <p> |
| 16 | + The minimum version of ServiceControl required to enable this feature is |
| 17 | + <span> {{ minimumSCVersionForAllMessages }} </span>. |
| 18 | + </p> |
| 19 | + <div> |
| 20 | + <a class="btn btn-default btn-primary" href="https://particular.net/downloads" target="_blank">Update ServiceControl to latest version</a> |
| 21 | + </div> |
| 22 | + </div> |
| 23 | + </template> |
| 24 | + |
| 25 | + <div class="container"> |
| 26 | + <div class="row title"> |
| 27 | + <div class="col-12"> |
| 28 | + <h1>All Messages</h1> |
| 29 | + </div> |
| 30 | + </div> |
| 31 | + <div class="row"> |
| 32 | + <AuditList /> |
28 | 33 | </div>
|
29 | 34 | </div>
|
30 |
| - <div class="row"> |
31 |
| - <AuditList /> |
32 |
| - </div> |
33 |
| - </div> |
34 |
| - </template> |
35 |
| - </ConditionalRender> |
| 35 | + </ConditionalRender> |
| 36 | + </LicenseNotExpired> |
| 37 | + </ServiceControlAvailable> |
36 | 38 | </template>
|
37 | 39 |
|
38 | 40 | <style scoped>
|
|
0 commit comments