![]() FriendlyDateTime supports passing in a prefix, but then does not use that on mobile. This causes issues where you must check and account for mobile in all usages. This change adds the optional prefixMobile prop to allow for easy application of a mobile-specific prefix. The default behavior is unchanged. fixes EVAL-2007 flag=assignments_2_student Test plan: - PreReqs: - Assignment Ehnancements - Student is enabled - A course with a student - Create an assignment with a start and end date in the past - As a student, view the assignment - Observe the lock page with availability dates - Shrink the viewport to mobile mode and observe the shorter date format: "<start-date> to <end-date>" Change-Id: I5c39485bf36f6c479e04214dc25f03a91df9313b Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275502 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Spencer Olson <solson@instructure.com> Reviewed-by: Syed Hussain <shussain@instructure.com> QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com> Product-Review: Jody Sailor |
||
---|---|---|
.. | ||
components | ||
modules | ||
mockFilesENV.js |