Add client-side configuration setting reply-notifications

This commit is contained in:
Pelle Nilsson 2018-07-24 19:54:04 +02:00
parent 1dd95d5aad
commit 18b1d11007
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ define(function() {
"reply-to-self": false,
"require-email": false,
"require-author": false,
"reply-notifications": false,
"max-comments-top": "inf",
"max-comments-nested": 5,
"reveal-on-click": 5,

View File

@ -42,7 +42,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
// only display notification checkbox if email is filled in
var email_edit = function() {
if ($("[name='email']", el).value.length > 0) {
if (config["reply-notifications"] && $("[name='email']", el).value.length > 0) {
$(".notification-section", el).show();
} else {
$(".notification-section", el).hide();