mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Update core nodes to pull common msgs from node-red ns
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="form-row">
|
||||
<label for="node-input-dname"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
|
||||
<input type="text" id="node-input-dname" data-i18n="[placeholder]common.label.name">
|
||||
<label for="node-input-dname"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
||||
<input type="text" id="node-input-dname" data-i18n="[placeholder]node-red:common.label.name">
|
||||
</div>
|
||||
<div class="form-tips" id="node-tip"><span data-i18n="[html]email.tip.cred"></span></div>
|
||||
</script>
|
||||
@@ -144,8 +144,8 @@
|
||||
</div>
|
||||
<br/>
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
|
||||
<input type="text" id="node-input-name" data-i18n="[placeholder]common.label.name">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
||||
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
|
||||
</div>
|
||||
<div class="form-tips" id="node-tip"><span data-i18n="[html]email.tip.cred"></span></div>
|
||||
<div id="node-input-tip" class="form-tips"><span data-i18n="[html]email.tip.recent"></span></div>
|
||||
|
@@ -73,7 +73,7 @@ module.exports = function(RED) {
|
||||
if (smtpTransport) {
|
||||
node.status({fill:"blue",shape:"dot",text:RED._("email.status.sending")});
|
||||
if (msg.to && node.name && (msg.to !== node.name)) {
|
||||
node.warn(RED._("common.errors.nooverride"));
|
||||
node.warn(RED._("node-red:common.errors.nooverride"));
|
||||
}
|
||||
var sendopts = { from: node.userid }; // sender address
|
||||
sendopts.to = node.name || msg.to; // comma separated list of addressees
|
||||
@@ -237,20 +237,20 @@ module.exports = function(RED) {
|
||||
node.log(RED._("email.status.newemail",{topic:pay.topic}));
|
||||
}
|
||||
else { node.log(RED._("email.status.duplicate",{topic:pay.topic})); }
|
||||
//node.status({fill:"green",shape:"dot",text:RED._("common.status.ok")});
|
||||
//node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.ok")});
|
||||
node.status({});
|
||||
});
|
||||
}
|
||||
else {
|
||||
node.log(RED._("email.status.inboxzero"));
|
||||
//node.status({fill:"green",shape:"dot",text:RED._("common.status.ok")});
|
||||
//node.status({fill:"green",shape:"dot",text:RED._("node-red:common.status.ok")});
|
||||
node.status({});
|
||||
}
|
||||
}
|
||||
imap.end();
|
||||
});
|
||||
});
|
||||
node.status({fill:"grey",shape:"dot",text:RED._("common.status.connecting")});
|
||||
node.status({fill:"grey",shape:"dot",text:RED._("node-red:common.status.connecting")});
|
||||
imap.connect();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user