|
44 | 44 | </div> |
45 | 45 |
|
46 | 46 | <div class="form-row credentials"> |
47 | | - <label> </label> |
48 | | - <input type="checkbox" id="node-input-cwm-default-endpoint" style="display: inline-block; width: auto; vertical-align: top;"> |
49 | | - <label for="node-input-cwm-default-endpoint" style="width: 70%;"> Use Default Service Endpoint</label> |
50 | | - </div> |
51 | | - <div class="form-row"> |
52 | 47 | <label for="node-input-cwm-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label> |
53 | 48 | <input type="text" id="node-input-cwm-service-endpoint" placeholder="https://gateway.watsonplatform.net/assistant/api"> |
54 | 49 | </div> |
55 | 50 |
|
56 | 51 | <div class="form-row"> |
57 | | - <label for="node-input-cwm-custom-mode"><i class="fa fa-book"></i> Detect: </label> |
| 52 | + <label for="node-input-cwm-custom-mode"><i class="fa fa-book"></i> Mode: </label> |
58 | 53 | <select type="text" id="node-input-cwm-custom-mode" style="display: inline-block; width: 70%;"> |
59 | 54 | <option value="listWorkspaces">List Workspaces</option> |
60 | 55 | <option value="getWorkspace">Get Workspace Details</option> |
|
341 | 336 | defining the content of the updates |
342 | 337 | should be passed in |
343 | 338 | as <code>msg.payload</code>. Fields to be updated need a |
344 | | - <code>new_</code> prefix as part of their key. |
| 339 | + <code>new_</code> prefix as part of their key. |
345 | 340 | </p> |
346 | 341 | </li> |
347 | 342 | <li>Delete Dialog Node |
|
438 | 433 | // moved in if there is a clash with other nodes. |
439 | 434 | var cv1wm = new CV1WM(); |
440 | 435 | cv1wm.mode_selected = null; |
441 | | - cv1wm.endpoint_required = false; |
442 | 436 |
|
443 | 437 | cv1wm.showSelectedFields = function(fields) { |
444 | 438 | for (i = 0; i < fields.length; i++) { |
|
463 | 457 | + ', #node-input-cwm-entity' |
464 | 458 | + ', #node-input-cwm-entity-value' |
465 | 459 | + ', #node-input-cwm-dialog-node' |
466 | | - + ', #node-input-cwm-export-content' |
467 | | - + ', #node-input-cwm-service-endpoint'); |
| 460 | + + ', #node-input-cwm-export-content'); |
468 | 461 |
|
469 | 462 | cv1wm.hideSelectedFields(fields); |
470 | 463 | } |
|
546 | 539 | case 'createWorkspace': |
547 | 540 | break; |
548 | 541 | } |
549 | | - if (cv1wm.endpoint_required) { |
550 | | - fields.push('#node-input-cwm-service-endpoint'); |
551 | | - } |
| 542 | + |
552 | 543 | cv1wm.showSelectedFields(fields); |
553 | 544 | } |
554 | 545 |
|
|
558 | 549 | cv1wm.mode_selected = $('#node-input-cwm-custom-mode').val(); |
559 | 550 | cv1wm.processSelectedMethod(cv1wm.mode_selected); |
560 | 551 | }); |
561 | | - $('#node-input-cwm-default-endpoint').change(function () { |
562 | | - cv1wm.endpoint_required = ! $('#node-input-cwm-default-endpoint').prop('checked'); |
563 | | - cv1wm.processSelectedMethod(cv1wm.mode_selected); |
564 | | - }); |
565 | 552 | } |
566 | 553 |
|
567 | 554 | // This is the on edit prepare function, which will be invoked everytime the dialog |
|
600 | 587 | 'cwm-entity-value': {value:""}, |
601 | 588 | 'cwm-dialog-node': {value:""}, |
602 | 589 | 'cwm-export-content': {value:false}, |
603 | | - 'cwm-default-endpoint' :{value: true}, |
604 | | - 'cwm-service-endpoint' :{value: 'https://gateway.watsonplatform.net/assistant/api'} |
| 590 | + 'cwm-service-endpoint' :{value: ''} |
605 | 591 | }, |
606 | 592 | credentials: { |
607 | 593 | username: {type:'text'}, |
|
0 commit comments