mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-24 07:32:44 +00:00
(fix) make sure empty categories are possible
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user