mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
108055: fix issue 8686: unable to enter freetext values in the submission form for vocabulary
This commit is contained in:
@@ -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>
|
||||
|
@@ -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
|
||||
*/
|
||||
|
@@ -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",
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user