-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DateTime Picker : Do not enable time input if date textfield is empty…
…, do not show error message if date input is valid. (#1871) * Do not enable time input if date textfield is empty, do not show error message id date input is valid. * Address review comments. * Address inline comments. * Avoid duplication of invalid date error text. * Address inline comment. * Address review comments. * address my own comments * BREAKS: rebind if draft answer changes * Fix build failure. * Rename test case and add one more assertion. * breaking: cleaned up date time picker * clear text on imporper answer * disable time at the start * use text in datebox to set datetime * set edti text in date * breaking: fix time disappering * cleaner code * init textwatcher once * dont clear answer in change text * simplify even more * remove unneessary method * fix tests * fix tests * final refactor * final final comment fixes * enable time picker on cal choosing date * add a UI test to check if the answer gets saved * Address comments * address comments and cleanup tests --------- Co-authored-by: Santosh Pingle <[email protected]> Co-authored-by: omarismail <[email protected]>
- Loading branch information
1 parent
aff90f1
commit a9d95db
Showing
7 changed files
with
282 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"resourceType": "Questionnaire", | ||
"item": [ | ||
{ | ||
"linkId": "1", | ||
"text": "Schedule an appointment", | ||
"type": "dateTime", | ||
"item": [ | ||
{ | ||
"extension": [ | ||
{ | ||
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory", | ||
"valueCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "http://hl7.org/fhir/questionnaire-display-category", | ||
"code": "instructions" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"linkId": "1-most-recent", | ||
"text": "Select a date 4 weeks from now", | ||
"type": "display" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.