FIX: Better to give an `id` even if not required in `onlyStream`

FIX: Better to give an id even if not required in onlyStream

diff --git a/assets/javascripts/initializers/add-holiday-flair.js.es6 b/assets/javascripts/initializers/add-holiday-flair.js.es6
index 30d3180..dc5c7c6 100644
--- a/assets/javascripts/initializers/add-holiday-flair.js.es6
+++ b/assets/javascripts/initializers/add-holiday-flair.js.es6
@@ -25,7 +25,7 @@ export default {
             .append(iconHTML("calendar-alt"))
             .addClass("on-holiday");
         });
-      }, { id: 'discourse-calendar' });
+      }, { id: 'discourse-calendar-holiday-flair' });
 
       api.addPosterIcon(cfs => {
         const onHoliday = customBool(cfs.on_holiday);
diff --git a/assets/javascripts/initializers/discourse-calendar.js.es6 b/assets/javascripts/initializers/discourse-calendar.js.es6
index 2cebe7f..5e02b96 100644
--- a/assets/javascripts/initializers/discourse-calendar.js.es6
+++ b/assets/javascripts/initializers/discourse-calendar.js.es6
@@ -22,7 +22,7 @@ function stringToHexColor(str) {
 function initializeDiscourseCalendar(api) {
   let _topicController;
 
-  api.decorateCooked(attachCalendar, { onlyStream: true });
+  api.decorateCooked(attachCalendar, { onlyStream: true, id: 'discourse-calendar' });
 
   api.registerCustomPostMessageCallback("calendar_change", topicController => {
     const stream = topicController.get("model.postStream");

GitHub sha: c15ec21c

1 Like