mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Fix defaulting of email auth value (and linting)
This commit is contained in:
parent
9a57958a1e
commit
8320571630
@ -127,6 +127,10 @@
|
|||||||
return (this.dname)?"node_label_italic":"";
|
return (this.dname)?"node_label_italic":"";
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
|
if (this.authtype === undefined) {
|
||||||
|
this.authtype = "BASIC";
|
||||||
|
$("#node-input-authtype").val('BASIC');
|
||||||
|
}
|
||||||
if (this.credentials.global) {
|
if (this.credentials.global) {
|
||||||
$('#node-tip').show();
|
$('#node-tip').show();
|
||||||
} else {
|
} else {
|
||||||
@ -335,6 +339,10 @@
|
|||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
if (this.authtype === undefined) {
|
||||||
|
this.authtype = "BASIC";
|
||||||
|
$("#node-input-authtype").val('BASIC');
|
||||||
|
}
|
||||||
if (this.credentials.global) {
|
if (this.credentials.global) {
|
||||||
$('#node-tip').show();
|
$('#node-tip').show();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user