@@ -11,6 +11,8 @@ import { userIndicatorMapper } from "./userIndicatorMapper";
11
11
import ConfirmDialog from " @/components/ConfirmDialog.vue" ;
12
12
import { useShowToast } from " @/composables/toast" ;
13
13
import ResultsCount from " @/components/ResultsCount.vue" ;
14
+ import { useHiddenFeature } from " ./useHiddenFeature" ;
15
+ import { license } from " @/composables/serviceLicense" ;
14
16
15
17
enum NameFilterType {
16
18
beginsWith = " Begins with" ,
@@ -66,6 +68,9 @@ const filteredData = computed(() => {
66
68
})
67
69
.sort (sortItem ?.comparer );
68
70
});
71
+ // We can remove this hidden toggle once we have new edition licenses.
72
+ const hiddenFeatureToggle = useHiddenFeature ([" ArrowUp" , " ArrowUp" , " ArrowDown" , " ArrowDown" ]);
73
+ const showMonthly = computed (() => license .edition === " MonthlyUsage" || hiddenFeatureToggle .value );
69
74
70
75
onMounted (async () => {
71
76
await loadData ();
@@ -221,7 +226,8 @@ async function save() {
221
226
<thead >
222
227
<tr >
223
228
<th scope =" col" >{{ props.columnTitle }}</th >
224
- <th scope =" col" class =" text-end formatThroughputColumn" >Maximum daily throughput</th >
229
+ <th v-if =" showMonthly" scope =" col" class =" text-end formatThroughputColumn" >Highest monthly throughput <i class =" fa fa-info-circle text-primary" v-tippy =" 'In the last 12 months'" /></th >
230
+ <th v-else scope =" col" class =" text-end formatThroughputColumn" >Maximum daily throughput <i class =" fa fa-info-circle text-primary" v-tippy =" 'In the last 12 months'" /></th >
225
231
<th scope =" col" >Endpoint Type <i class =" fa fa-info-circle text-primary" v-tippy =" 'Pick the most correct option'" /></th >
226
232
</tr >
227
233
</thead >
@@ -233,7 +239,8 @@ async function save() {
233
239
<td class =" col" aria-label =" name" >
234
240
{{ row.name }}
235
241
</td >
236
- <td class =" col text-end formatThroughputColumn" style =" width : 250px " aria-label =" maximum daily throughput" >{{ row.max_daily_throughput.toLocaleString() }}</td >
242
+ <td v-if =" showMonthly" class =" col text-end formatThroughputColumn" style =" width : 250px " aria-label =" maximum usage throughput" >{{ row.max_monthly_throughput ? row.max_monthly_throughput.toLocaleString() : "0" }}</td >
243
+ <td v-else class =" col text-end formatThroughputColumn" style =" width : 250px " aria-label =" maximum usage throughput" >{{ row.max_daily_throughput.toLocaleString() }}</td >
237
244
<td class =" col" style =" width : 350px " aria-label =" endpoint type" >
238
245
<select class =" form-select endpointType format-text" @change =" (event) => updateIndicator(event, row.name)" >
239
246
<option v-if =" props.showEndpointTypePlaceholder" value =" " >Pick the most appropriate option</option >
0 commit comments