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 },
|
starttls: { value: false },
|
||||||
certFile: { value: "" },
|
certFile: { value: "" },
|
||||||
keyFile: { value: "" },
|
keyFile: { value: "" },
|
||||||
users: { value: [] },
|
mtausers: { value: [] },
|
||||||
auth: { value: false },
|
auth: { value: false },
|
||||||
expert: { value: '{"logger":false}' }
|
expert: { value: '{"logger":false}' }
|
||||||
},
|
},
|
||||||
@@ -506,9 +506,9 @@
|
|||||||
}
|
}
|
||||||
// User Management
|
// User Management
|
||||||
let cacheItemCount = 0;
|
let cacheItemCount = 0;
|
||||||
if (node.users && node.users.length > 0) {
|
if (node.mtausers && node.mtausers.length > 0) {
|
||||||
cacheItemCount = node.users.length;
|
cacheItemCount = node.users.length;
|
||||||
node.users.forEach(function (element, index, array) {
|
node.mtausers.forEach(function (element, index, array) {
|
||||||
generateUserEntry(element, index);
|
generateUserEntry(element, index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -597,9 +597,9 @@
|
|||||||
oneditsave: function () {
|
oneditsave: function () {
|
||||||
let node = this;
|
let node = this;
|
||||||
let cacheUsers = $("#node-input-email-users-container").children();
|
let cacheUsers = $("#node-input-email-users-container").children();
|
||||||
node.users = [];
|
node.mtausers = [];
|
||||||
cacheUsers.each(function () {
|
cacheUsers.each(function () {
|
||||||
node.users.push({
|
node.mtausers.push({
|
||||||
name: $(this)
|
name: $(this)
|
||||||
.find(".userName")
|
.find(".userName")
|
||||||
.val(),
|
.val(),
|
||||||
|
|||||||
@@ -629,7 +629,7 @@ module.exports = function(RED) {
|
|||||||
this.starttls = n.starttls;
|
this.starttls = n.starttls;
|
||||||
this.certFile = n.certFile;
|
this.certFile = n.certFile;
|
||||||
this.keyFile = n.keyFile;
|
this.keyFile = n.keyFile;
|
||||||
this.mtausers = n.users;
|
this.mtausers = n.mtausers;
|
||||||
this.auth = n.auth;
|
this.auth = n.auth;
|
||||||
try {
|
try {
|
||||||
this.options = JSON.parse(n.expert);
|
this.options = JSON.parse(n.expert);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-node-email",
|
"name": "node-red-node-email",
|
||||||
"version": "3.1.0",
|
"version": "4.0.0",
|
||||||
"description": "Node-RED nodes to send and receive simple emails.",
|
"description": "Node-RED nodes to send and receive simple emails.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"imap": "^0.8.19",
|
"imap": "^0.8.19",
|
||||||
|
|||||||
Reference in New Issue
Block a user