@@ -9,6 +9,8 @@ import { useConfigurationStore } from "@/stores/ConfigurationStore";
99import { storeToRefs } from " pinia" ;
1010import { useLicenseStore } from " @/stores/LicenseStore" ;
1111import LoadingSpinner from " ../LoadingSpinner.vue" ;
12+ import ColumnHeader from " ../ColumnHeader.vue" ;
13+ import DataView from " ../DataView.vue" ;
1214
1315const configurationStore = useConfigurationStore ();
1416const { configuration } = storeToRefs (configurationStore );
@@ -23,6 +25,7 @@ const { licenseStatus, license } = licenseStore;
2325 <section >
2426 <LoadingSpinner v-if =" loading " />
2527 <template v-else >
28+ <h3 class =" mt-2" >License Details</h3 >
2629 <div class =" box" >
2730 <div class =" row" >
2831 <div class =" license-info" >
@@ -100,7 +103,6 @@ const { licenseStatus, license } = licenseStore;
100103 <a href =" https://docs.particular.net/servicecontrol/license" target =" _blank" >Install or update a ServiceControl license</a >
101104 </li >
102105 </ul >
103-
104106 <div class =" need-help" >
105107 Need help?
106108 <a href =" https://particular.net/contactus" >Contact us <FAIcon :icon =" faExternalLink " /></a >
@@ -109,6 +111,30 @@ const { licenseStatus, license } = licenseStore;
109111 </div >
110112 </div >
111113 </template >
114+
115+ <template v-if =" license .products ?.length " >
116+ <h3 class =" mt-4" >Licensed Endpoints</h3 >
117+ <div class =" licensed-endpoints col-4" >
118+ <div role =" row" aria-label =" column-headers" class =" row table-head-row" :style =" { borderTop: 0 }" >
119+ <ColumnHeader name="Size" label="Size (Average Messages/Month)" class="col-6" />
120+ <ColumnHeader name="Quantity" label="Quantity" class="col-6" />
121+ </div >
122+ <DataView :data =" license .products " >
123+ <template #data =" { pageData } " >
124+ <div role =" rowgroup" aria-label =" endpoints" >
125+ <div role =" row" class =" row grid-row" v-for =" endpoint in pageData" :key =" endpoint.name" >
126+ <span class =" col-6" >
127+ {{ endpoint.name }}
128+ </span >
129+ <span class =" col-6" >
130+ {{ endpoint.quantity }}
131+ </span >
132+ </div >
133+ </div >
134+ </template >
135+ </DataView >
136+ </div >
137+ </template >
112138 </section >
113139 </ServiceControlAvailable >
114140 </section >
@@ -117,7 +143,6 @@ const { licenseStatus, license } = licenseStore;
117143<style scoped>
118144.license-info {
119145 font-size : 16px ;
120- padding : 2em ;
121146 line-height : 3em ;
122147}
123148
@@ -130,4 +155,20 @@ const { licenseStatus, license } = licenseStore;
130155 padding-top : 20px ;
131156 border-top : 2px solid #f2f2f2 ;
132157}
158+
159+ .licensed-endpoints {
160+ padding : 20px ;
161+ }
162+
163+ .licensed-endpoints .grid-row {
164+ border-top : 1px solid #eee ;
165+ border-right : 1px solid #fff ;
166+ border-bottom : 1px solid #eee ;
167+ border-left : 1px solid #fff ;
168+ background-color : #fff ;
169+ }
170+
171+ .licensed-endpoints span {
172+ padding : 10px ;
173+ }
133174 </style >
0 commit comments