Make account calendar events marked as important dates appear in the
important dates sidebar. These events will have the default color (very
dark gray). Also includes these calendar contexts in the context modal
if the number of contexts is greater than the max that can be shown at
once.
closes LS-3958
flag = none
Test plan:
- As an admin, make some account calendar events and mark some as
important dates
- As a k5 student, subscribe to the account calendar and go to the
dashboard.
- Expect to see the important dates events present in the sidebar
- In a rails console, find your root account, then run:
account.settings[:calendar_contexts_limit] = 3
account.save!
- As a student on the dashboard, click the settings button in the
important dates sidebar
- Expect the account context(s) to appear
- Select/deselect the account context(s) and expect the events
displayed in the sidebar to update appropriately.
Change-Id: I26064b29984587803c1d58d507234d7ad6415d6d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316668
Reviewed-by: Luis Oliveira <luis.oliveira@instructure.com>
QA-Review: Luis Oliveira <luis.oliveira@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jackson Howe <jackson.howe@instructure.com>