FIX: recurrence was not applied when selected in the form (#6820)

FIX: recurrence was not applied when selected in the form (#6820)

diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6 b/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6
index fb59ae3..3379de2 100644
--- a/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6
+++ b/plugins/discourse-local-dates/assets/javascripts/discourse/components/discourse-local-dates-create-form.js.es6
@@ -137,6 +137,10 @@ export default Ember.Component.extend({
       text += ` timezones="${config.timezones.join("|")}"`;
     }
 
+    if (config.recurring) {
+      text += ` recurring="${config.recurring}"`;
+    }
+
     text += `]`;
 
     return text;

GitHub
sha: 523e0248

1 Like