mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +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');
|
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() {
|
(function sidebar_subject_list() {
|
||||||
var args = {
|
var args = {
|
||||||
want_show_more_topics_links: true,
|
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');
|
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() {
|
(function settings_tab() {
|
||||||
var page_param_checkbox_options = {
|
var page_param_checkbox_options = {
|
||||||
stream_desktop_notifications_enabled: true,
|
stream_desktop_notifications_enabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user