This commit is contained in:
@@ -227,6 +227,19 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
///////////////////////////////////////////////
|
||||
// Date/time past or future evaluation
|
||||
//
|
||||
dateIsPast(value) {
|
||||
if (!value) {
|
||||
return false;
|
||||
}
|
||||
if (value == "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return new Date(value) < new Date();
|
||||
},
|
||||
///////////////////////////////////////////
|
||||
// Turn a decimal number into a local
|
||||
// currency display
|
||||
|
||||
@@ -772,6 +772,9 @@ function buildRecords(listData, columndefinitions) {
|
||||
languageName,
|
||||
hour12
|
||||
);
|
||||
if (!window.$gz.locale.dateIsPast(column.v)) {
|
||||
cstStyle = { "font-weight": "bold" }; //warning, don't put a semicolon after the style or it will not work
|
||||
}
|
||||
break;
|
||||
case 2: //date only
|
||||
display = window.$gz.locale.utcDateToShortDateLocalized(
|
||||
|
||||
Reference in New Issue
Block a user