Skip to content

Commit

Permalink
108055: fix issue 8686: unable to enter freetext values in the submis…
Browse files Browse the repository at this point in the history
…sion form for vocabulary
  • Loading branch information
Jens Vannerum committed Nov 8, 2023
1 parent e62832f commit 0dcf6cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<button class="btn btn-outline-secondary" type="button" (click)="reset()">
{{'vocabulary-treeview.search.form.reset' | translate}}
</button>
<button class="btn btn-outline-primary" type="button" (click)="add()" [disabled]="this.vocabularyOptions.closed">
{{'vocabulary-treeview.search.form.add' | translate}}
</button>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,15 @@ export class VocabularyTreeviewComponent implements OnDestroy, OnInit, OnChanges
}
}

add() {
const userVocabularyEntry = {
value: this.searchText,
display: this.searchText,
} as VocabularyEntryDetail;
this.select.emit(userVocabularyEntry);
}


/**
* Unsubscribe from all subscriptions
*/
Expand Down
2 changes: 2 additions & 0 deletions src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5240,4 +5240,6 @@

"access-control-option-end-date-note": "Select the date until which the related access condition is applied",

"vocabulary-treeview.search.form.add": "Add",

}

0 comments on commit 0dcf6cb

Please sign in to comment.