mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-10 05:55:25 +00:00
(js) Fix links to newly subscribed calendar
This commit is contained in:
@@ -104,11 +104,10 @@
|
||||
this.$Preferences.ready().then(function() {
|
||||
if (Calendar.$Preferences.settings.Calendar.FoldersOrder)
|
||||
// Save list order
|
||||
Calendar.saveFoldersOrder(_.flatMap(Calendar.$findAll(), 'id')).then(function() {
|
||||
// Refresh list of calendars to fetch links associated to new calendar
|
||||
Calendar.$reloadAll();
|
||||
});
|
||||
Calendar.saveFoldersOrder(_.flatMap(Calendar.$findAll(), 'id'));
|
||||
});
|
||||
// Refresh list of calendars to fetch links associated to new calendar
|
||||
Calendar.$reloadAll();
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -166,7 +165,7 @@
|
||||
|
||||
if (calendarData.isWebCalendar)
|
||||
group = _this.$webcalendars;
|
||||
else if (calendarData.isSubscription)
|
||||
else if (calendarData.owner != Calendar.activeUser.login)
|
||||
group = _this.$subscriptions;
|
||||
else
|
||||
group = _this.$calendars;
|
||||
|
||||
Reference in New Issue
Block a user