mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
@@ -66,7 +66,7 @@
|
||||
</div>
|
||||
<div class="form-row node-input-token" style="display: none;">
|
||||
<label for="node-input-token"><i class="fa fa-lock"></i> <span data-i18n="email.label.token"></span></label>
|
||||
<input type="text" id="node-input-token" placeholder="oauth2Response.access_token">
|
||||
<input type="text" id="node-input-token" placeholder="oauth2Response.access_token" style="width:70%;">
|
||||
</div>
|
||||
<br/>
|
||||
<div class="form-row node-input-useTLS">
|
||||
@@ -116,6 +116,10 @@
|
||||
this.authtype = "BASIC";
|
||||
$("#node-input-authtype").val('BASIC');
|
||||
}
|
||||
if (typeof this.token === 'undefined') {
|
||||
$("#node-input-token").val("oauth2Response.access_token");
|
||||
this.token = "oauth2Response.access_token";
|
||||
}
|
||||
$("#node-input-authtype").change(function() {
|
||||
var protocol = $("#node-input-authtype").val();
|
||||
if (protocol === "BASIC") {
|
||||
@@ -220,7 +224,7 @@
|
||||
</div>
|
||||
<div class="form-row node-input-token" style="display: none;">
|
||||
<label for="node-input-token"><i class="fa fa-lock"></i> <span data-i18n="email.label.token"></span></label>
|
||||
<input type="text" id="node-input-token" placeholder="oauth2Response.access_token">
|
||||
<input type="text" id="node-input-token" placeholder="oauth2Response.access_token" style="width:70%;">
|
||||
</div>
|
||||
<div class="form-row node-input-box">
|
||||
<label for="node-input-box"><i class="fa fa-inbox"></i> <span data-i18n="email.label.folder"></span></label>
|
||||
@@ -369,6 +373,10 @@
|
||||
$("#node-input-box").val("INBOX");
|
||||
this.box = "INBOX";
|
||||
}
|
||||
if (typeof this.token === 'undefined') {
|
||||
$("#node-input-token").val("oauth2Response.access_token");
|
||||
this.token = "oauth2Response.access_token";
|
||||
}
|
||||
if (typeof this.criteria === 'undefined') {
|
||||
$("#node-input-criteria").val("UNSEEN");
|
||||
this.criteria = "UNSEEN";
|
||||
|
Reference in New Issue
Block a user