(fix) make sure empty categories are possible
parent
fcf88444c9
commit
93ced64456
|
@ -71,6 +71,10 @@
|
|||
}
|
||||
|
||||
function addCalendarCategory() {
|
||||
if (!angular.isDefined(vm.preferences.defaults.SOGoCalendarCategoriesColors)) {
|
||||
vm.preferences.defaults.SOGoCalendarCategoriesColors = {};
|
||||
vm.preferences.defaults.SOGoCalendarCategories = [];
|
||||
}
|
||||
vm.preferences.defaults.SOGoCalendarCategoriesColors["New category"] = "#aaa";
|
||||
vm.preferences.defaults.SOGoCalendarCategories.push("New category");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue