From 776efbb6a3ded027f2973f4d93a51fa99c986160 Mon Sep 17 00:00:00 2001
From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Date: Sat, 13 Nov 2021 22:24:54 -0800
Subject: [PATCH] Add note passwords not copied when duplicating notifier or
newsletters
---
data/interfaces/default/newsletter_config.html | 3 +++
data/interfaces/default/notifier_config.html | 3 +++
2 files changed, 6 insertions(+)
diff --git a/data/interfaces/default/newsletter_config.html b/data/interfaces/default/newsletter_config.html
index 458b0fd8..003594a7 100644
--- a/data/interfaces/default/newsletter_config.html
+++ b/data/interfaces/default/newsletter_config.html
@@ -724,6 +724,9 @@
$('#duplicate-newsletter-item').click(function() {
var msg = 'Are you sure you want to duplicate this ${newsletter["agent_label"]} newsletter?';
+ if ($('#set_newsletter_config .form-control[id$=_password]').val()) {
+ msg += '
Note: Saved passwords will not be copied over and must be re-entered.';
+ }
var url = 'add_newsletter_config';
confirmAjaxCall(url, msg, { agent_id: '${newsletter["agent_id"]}' }, null, duplicateCallback);
});
diff --git a/data/interfaces/default/notifier_config.html b/data/interfaces/default/notifier_config.html
index 3fff8ca0..3aa68bb5 100644
--- a/data/interfaces/default/notifier_config.html
+++ b/data/interfaces/default/notifier_config.html
@@ -503,6 +503,9 @@
$('#duplicate-notifier-item').click(function() {
var msg = 'Are you sure you want to duplicate this ${notifier["agent_label"]} notification agent?';
+ if ($('#set_notifier_config .form-control[id$=_password]').val()) {
+ msg += '
Note: Saved passwords will not be copied over and must be re-entered.';
+ }
var url = 'add_notifier_config';
confirmAjaxCall(url, msg, { agent_id: '${notifier["agent_id"]}' }, null, duplicateCallback);
});