This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
>{{ i.name
|
||||
}}<span v-if="i.ageValueViz.length" class="ml-1">
|
||||
({{ i.ageValueViz }})</span
|
||||
><span v-if="i.decValueViz.length" class="ml-1">
|
||||
({{ i.decValueViz }})</span
|
||||
></v-card-title
|
||||
>
|
||||
<v-card-subtitle
|
||||
@@ -171,9 +173,11 @@ export default {
|
||||
// );
|
||||
// let dtPrecipice = dtToday.plus({ days: -85 }).toUTC();
|
||||
|
||||
let timeZoneName = window.$gz.locale.getResolvedTimeZoneName();
|
||||
let languageName = window.$gz.locale.getResolvedLanguage();
|
||||
let hour12 = window.$gz.store.state.userOptions.hour12;
|
||||
const timeZoneName = window.$gz.locale.getResolvedTimeZoneName();
|
||||
const languageName = window.$gz.locale.getResolvedLanguage();
|
||||
const hour12 = window.$gz.store.state.userOptions.hour12;
|
||||
const currencyName = window.$gz.locale.getCurrencyName();
|
||||
|
||||
for (let i = 0; i < temp.length; i++) {
|
||||
temp[
|
||||
i
|
||||
@@ -201,6 +205,16 @@ export default {
|
||||
temp[i].ageValueViz = window.$gz.locale.durationLocalized(
|
||||
temp[i].ageValue
|
||||
);
|
||||
|
||||
if (temp[i].decValue != null && temp[i].decValue != 0) {
|
||||
//Note that initially we only haev "The Andy" WorkorderTotalExceedsThreshold = 23 to display a decValue
|
||||
//but if another comes can disambiuguate them here by event type and display currency or decimal as necessary
|
||||
temp[i].decValueViz = window.$gz.locale.currencyLocalized(
|
||||
temp[i].decValue,
|
||||
languageName,
|
||||
currencyName
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
vm.obj = [...temp];
|
||||
|
||||
Reference in New Issue
Block a user