-
Notifications
You must be signed in to change notification settings - Fork 286
feat(importing): show all writable calendars in picker #7876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Mark unsupported calendars as non-selectable. Previously they were fully hidden. Show a message about why some calendars are not selectable. Also show calendars that do not support events (and only support tasks and/or journal entries). Previously, calendars that did not support events were hidden altogether. Resolves: nextcloud#2572 Signed-off-by: Oleksandr Dzhychko <[email protected]>
| /** | ||
| * List of sorted writable calendars. | ||
| * | ||
| * Even including ones without support for events. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting case. And I'm not sure if the old behavior was intended or if, respectively, the new behavior is more appropriate.
Because sortedCalendars (and sortedCalendarFilteredByComponents) only returned calendars that at least supported VEVENT users could never import into calendars that only support VTODO or/and VJOURNAL.
| return calendars | ||
| if (disalbedBecauseOfEvents && disalbedBecauseOfTasks && disalbedBecauseOfJournalEntries) { | ||
| return this.$t('calendar', 'Some calendars are disabled because this file contains events, tasks and journal entries.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe Intl.ListFormat can be used.
See and wait for the outcome of #7875 (comment)
Mark unsupported calendars as non-selectable.
Previously they were fully hidden.
Show a message about why some calendars are not selectable.
Also show calendars that do not support events (and only support tasks and/or journal entries).
Previously, calendars that did not support events were hidden altogether.
Resolves: #2572
Before
After
Test data
SampleIcsFiles.zip
After (previous iterations)
First iteration