Make calendar integration optional for #569

Due to bug in Nextcloud Calendar
This commit is contained in:
the-djmaze 2022-10-25 17:06:00 +02:00
parent 4fa931f631
commit 3903a37b64
2 changed files with 14 additions and 7 deletions

View file

@ -95,9 +95,12 @@
+ '</span>'));
// https://github.com/nextcloud/calendar/issues/4684
// attachmentsControls.append(Element.fromHTML('<span data-bind="visible: nextcloudICS" data-icon="📅">'
// + '<span class="g-ui-link" data-bind="click: nextcloudSaveICS" data-i18n="NEXTCLOUD/SAVE_ICS"></span>'
// + '</span>'));
let cfg = rl.settings.get('Nextcloud');
if (cfg.CalDAV) {
attachmentsControls.append(Element.fromHTML('<span data-bind="visible: nextcloudICS" data-icon="📅">'
+ '<span class="g-ui-link" data-bind="click: nextcloudSaveICS" data-i18n="NEXTCLOUD/SAVE_ICS"></span>'
+ '</span>'));
}
}
const msgMenu = template.content.querySelector('#more-view-dropdown-id + menu');