Skip to content

Commit

Permalink
Use correct terminology when adding parameters to nodes. Hide custom …
Browse files Browse the repository at this point in the history
…name input when selecting the parameter name unless a custom name is selected.
  • Loading branch information
james-strauss-uwa committed Sep 9, 2020
1 parent 4058829 commit d525fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Eagle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,7 @@ export class Eagle {
uniqueFieldNames = Utils.getFieldTextList(this.logicalGraph());
}

Utils.requestUserChoice("Add Field", "Please select a field text", uniqueFieldNames, 0, true, "Custom Field Name", (completed : boolean, userString : string) => {
Utils.requestUserChoice("Add Parameter", "Please select a parameter name, or create a custom name", uniqueFieldNames, 0, true, "Custom Parameter Name", (completed : boolean, userString : string) => {
if (!completed){
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ export class Utils {
var choices : string[] = $('#choiceModal').data('choices');
var choice : number = parseInt(<string>$('#choiceModalSelect').val(), 10);

// disable the custom text input unless the last option in the select is chosen
$('#choiceModalString').prop('disabled', choice !== choices.length);
// hide the custom text input unless the last option in the select is chosen
$('#choiceModalStringRow').toggle(choice === choices.length);
})

// #confirmModal - requestUserConfirm()
Expand Down

0 comments on commit d525fec

Please sign in to comment.