mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-12-26 23:16:47 +01:00
rename mtausers property throughout
This commit is contained in:
@@ -476,7 +476,7 @@
|
||||
starttls: { value: false },
|
||||
certFile: { value: "" },
|
||||
keyFile: { value: "" },
|
||||
users: { value: [] },
|
||||
mtausers: { value: [] },
|
||||
auth: { value: false },
|
||||
expert: { value: '{"logger":false}' }
|
||||
},
|
||||
@@ -506,9 +506,9 @@
|
||||
}
|
||||
// User Management
|
||||
let cacheItemCount = 0;
|
||||
if (node.users && node.users.length > 0) {
|
||||
if (node.mtausers && node.mtausers.length > 0) {
|
||||
cacheItemCount = node.users.length;
|
||||
node.users.forEach(function (element, index, array) {
|
||||
node.mtausers.forEach(function (element, index, array) {
|
||||
generateUserEntry(element, index);
|
||||
});
|
||||
}
|
||||
@@ -597,9 +597,9 @@
|
||||
oneditsave: function () {
|
||||
let node = this;
|
||||
let cacheUsers = $("#node-input-email-users-container").children();
|
||||
node.users = [];
|
||||
node.mtausers = [];
|
||||
cacheUsers.each(function () {
|
||||
node.users.push({
|
||||
node.mtausers.push({
|
||||
name: $(this)
|
||||
.find(".userName")
|
||||
.val(),
|
||||
|
||||
@@ -629,7 +629,7 @@ module.exports = function(RED) {
|
||||
this.starttls = n.starttls;
|
||||
this.certFile = n.certFile;
|
||||
this.keyFile = n.keyFile;
|
||||
this.mtausers = n.users;
|
||||
this.mtausers = n.mtausers;
|
||||
this.auth = n.auth;
|
||||
try {
|
||||
this.options = JSON.parse(n.expert);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-node-email",
|
||||
"version": "3.1.0",
|
||||
"version": "4.0.0",
|
||||
"description": "Node-RED nodes to send and receive simple emails.",
|
||||
"dependencies": {
|
||||
"imap": "^0.8.19",
|
||||
|
||||
Reference in New Issue
Block a user