From 07c407edea24825b15001ecad96026ecdf6d53ad Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 11 Jan 2016 15:18:26 -0800 Subject: [PATCH] [Time Conductor] Validate numeric date-time fields Allow injection of a validator for numeric values of the date-time fields, to allow for these to be displayed as invalid in cases where the text itself may be parsed but the resulting value is not valid (e.g. when start is greater than end.) https://github.com/nasa/openmctweb/issues/325 --- .../templates/controls/datetime-field.html | 2 +- .../controllers/DateTimeFieldController.js | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/platform/commonUI/general/res/templates/controls/datetime-field.html b/platform/commonUI/general/res/templates/controls/datetime-field.html index e9b394c530..187bac6dd2 100644 --- a/platform/commonUI/general/res/templates/controls/datetime-field.html +++ b/platform/commonUI/general/res/templates/controls/datetime-field.html @@ -24,7 +24,7 @@ + ng-class="{ error: textInvalid, test: valueInvalid }">