|
|
|
|
@ -694,13 +694,13 @@ async fn get_or_insert_calendar(source: &mut Cache, url: &Url)
|
|
|
|
|
None => { |
|
|
|
|
let new_name = format!("Test calendar for URL {}", url); |
|
|
|
|
let supported_components = SupportedComponents::TODO; |
|
|
|
|
let color = csscolorparser::parse("#ff8000"); // TODO: we should rather have specific colors, depending on the calendars
|
|
|
|
|
let color = csscolorparser::parse("#ff8000").unwrap(); // TODO: we should rather have specific colors, depending on the calendars
|
|
|
|
|
|
|
|
|
|
source.create_calendar( |
|
|
|
|
url.clone(), |
|
|
|
|
new_name.to_string(), |
|
|
|
|
supported_components, |
|
|
|
|
None, |
|
|
|
|
Some(color), |
|
|
|
|
).await |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|