Commit fe9f35e7 authored by Daniel Morlock's avatar Daniel Morlock

Make iCAL calendars deletable.

parent 23e9a50a
......@@ -3566,7 +3566,7 @@ function rcube_calendar_ui(settings)
if (node && node.id && me.calendars[node.id]) {
me.select_calendar(node.id, true);
rcmail.enable_command('calendar-edit', 'calendar-showurl', true);
rcmail.enable_command('calendar-delete', !me.calendars[node.id].readonly);
rcmail.enable_command('calendar-delete', me.calendars[node.id] && (me.calendars[node.id].deletable || !me.calendars[node.id].readonly));
rcmail.enable_command('calendar-remove', me.calendars[node.id] && me.calendars[node.id].removable);
}
});
......
......@@ -166,6 +166,9 @@ class ical_driver extends calendar_driver
// Make calendar readonly
$cal["readonly"] = true;
// Readonly but deletable
$cal["deletable"] = true;
// But name should be editable!
$cal["editable_name"] = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment