This commit is contained in:
@@ -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 +
|
||||
" " +
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user