File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
services/natural_language_classifier Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 3232 < label for = "node-input-password" > < i class = "fa fa-key" > </ i > Password</ label >
3333 < input type = "password" id = "node-input-password" placeholder = "Password" >
3434 </ div >
35+
36+ < div class = "form-row credentials" >
37+ < label > </ label >
38+ < input type = "checkbox" id = "node-input-default-endpoint" style = "display: inline-block; width: auto; vertical-align: top;" >
39+ < label for = "node-input-default-endpoint" style = "width: 70%;" > Use Default Service Endpoint</ label >
40+ </ div >
41+ < div class = "form-row" >
42+ < label for = "node-input-service-endpoint" > < i class = "fa fa-tag" > </ i > Service Endpoint</ label >
43+ < input type = "text" id = "node-input-service-endpoint" placeholder = "https://gateway.watsonplatform.net/natural-language-classifier/api" >
44+ </ div >
45+
3546 < div class = "form-row" >
3647 < label for = "node-input-mode" > < i class = "fa fa-question" > </ i > Mode</ label >
3748 < select type = "text" id = "node-input-mode" style = "display: inline-block; width: 70%;" >
95106 name : { value : "" } ,
96107 mode : { value : "classify" } ,
97108 language : { value : "en" } ,
98- classifier : { value : "" }
109+ classifier : { value : "" } ,
110+ 'default-endpoint' :{ value : true } ,
111+ 'service-endpoint' :{ value : 'https://gateway.watsonplatform.net/natural-language-classifier/api' }
99112 } ,
100113 credentials : {
101114 username : { type :"text" } ,
112125 labelStyle : function ( ) {
113126 return this . name ? "node_label_italic" : "" ;
114127 } ,
128+ //oneditprepare: nlconeditprepare
115129 oneditprepare : function ( ) {
116130 $ ( '#node-input-mode' ) . change ( function ( ) {
117131 var mode = $ ( '#node-input-mode' ) . val ( ) ;
You can’t perform that action at this time.
0 commit comments