mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Move source code for propagate_notification_change() in templates.js
This commit is contained in:
@@ -493,6 +493,15 @@ function render(template_name, args) {
|
||||
assert.equal(title.text().trim(), 'You have a notification');
|
||||
}());
|
||||
|
||||
(function propagate_notification_change() {
|
||||
var html = render('propagate_notification_change');
|
||||
global.write_handlebars_output("propagate_notification_change", html);
|
||||
|
||||
var button_area = $(html).find(".propagate-notifications-controls");
|
||||
assert.equal(button_area.find(".yes_propagate_notifications").text().trim(), 'Yes');
|
||||
assert.equal(button_area.find(".no_propagate_notifications").text().trim(), 'No');
|
||||
}());
|
||||
|
||||
(function sidebar_subject_list() {
|
||||
var args = {
|
||||
want_show_more_topics_links: true,
|
||||
@@ -756,15 +765,6 @@ function render(template_name, args) {
|
||||
assert.equal(a.text().trim(), 'Narrow to private messages with Hamlet');
|
||||
}());
|
||||
|
||||
(function notification_docs() {
|
||||
var html = render('propagate_notification_change');
|
||||
global.write_handlebars_output("propagate_notification_change", html);
|
||||
|
||||
var button_area = $(html).find(".propagate-notifications-controls");
|
||||
assert.equal(button_area.find(".yes_propagate_notifications").text().trim(), 'Yes');
|
||||
assert.equal(button_area.find(".no_propagate_notifications").text().trim(), 'No');
|
||||
}());
|
||||
|
||||
(function settings_tab() {
|
||||
var page_param_checkbox_options = {
|
||||
stream_desktop_notifications_enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user