This commit is contained in:
2021-07-20 19:59:28 +00:00
parent 666bac98f4
commit 431d2458bf
2 changed files with 13 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ export default {
///////////////////////////////////////////
// Turn a duration value into a display
//
durationLocalized(value) {
durationLocalized(value, hideSeconds) {
let theDays = 0;
let theHours = 0;
let theMinutes = 0;
@@ -219,7 +219,7 @@ export default {
window.$gz.translation.get("TimeSpanMinutes") +
" ";
}
if (theSeconds != 0) {
if (!hideSeconds && theSeconds != 0) {
ret +=
theSeconds +
" " +

View File

@@ -282,6 +282,10 @@
<!-- File / memory Size -->
{{ c.v }}
</template>
<template v-else-if="c.t == 15">
<!-- Duration / timespan -->
{{ c.v }}
</template>
<template v-else-if="c.t == 16">
<!-- PHONE NUMBER -->
<a :href="'tel:' + c.v">{{ c.v }}</a>
@@ -495,6 +499,10 @@
<!-- File / memory Size -->
{{ c.v }}
</template>
<template v-else-if="c.t == 15">
<!-- Duration / timespan -->
{{ c.v }}
</template>
<template v-else-if="c.t == 16">
<!-- PHONE NUMBER -->
<a :href="'tel:' + c.v">{{ c.v }}</a>
@@ -1143,6 +1151,9 @@ function buildRecords(listData, columndefinitions, ridColumnOpenable) {
2
);
break;
case 15: //duration / timespan
display = window.$gz.locale.durationLocalized(display, true); //duration localized with no seconds
break;
case 17: //Authorization Roles
if (availableRoles == null) {
availableRoles = window.$gz.enums.getSelectionList(