Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Add prefix to checkboxes used in notification_settings.
Sahil Batra7b79980be904
diff --git a/static/templates/settings/notification_settings.hbs b/static/templates/settings/notification_settings.hbsindex ad3640c74ca..68b63a78498 100644--- a/static/templates/settings/notification_settings.hbs+++ b/static/templates/settings/notification_settings.hbs@@ -32,7 +32,8 @@{{> notification_settings_checkboxessetting_name=this.setting_nameis_checked=this.is_checked- is_disabled=this.is_disabled }}+ is_disabled=this.is_disabled+ prefix=../../prefix }}{{/each}}</tr>{{/each}}@@ -56,7 +57,8 @@{{> settings_checkboxsetting_name=thisis_checked=(lookup ../user_settings this)- label=(lookup ../settings_label this)}}+ label=(lookup ../settings_label this)+ prefix=../prefix}}{{/each}}<label for="notification_sound">@@ -93,7 +95,8 @@setting_name=thisis_checked=(lookup ../user_settings this)label=(lookup ../settings_label this)- show_push_notifications_tooltip=(lookup ../show_push_notifications_tooltip this)}}+ show_push_notifications_tooltip=(lookup ../show_push_notifications_tooltip this)+ prefix=../prefix}}{{/each}}<h5>{{t "Email" }}</h5>@@ -102,7 +105,8 @@{{> settings_checkboxsetting_name=thisis_checked=(lookup ../user_settings this)- label=(lookup ../settings_label this)}}+ label=(lookup ../settings_label this)+ prefix=../prefix}}{{/each}}</div>diff --git a/static/templates/settings/user_notification_settings.hbs b/static/templates/settings/user_notification_settings.hbsindex 456b585cc74..9b21501f2ef 100644--- a/static/templates/settings/user_notification_settings.hbs+++ b/static/templates/settings/user_notification_settings.hbs@@ -1,3 +1,3 @@<div id="user-notification-settings" class="settings-section" data-name="notifications">- {{> notification_settings}}+ {{> notification_settings prefix="user_"}}</div>