[terms] link flags to terms - now also using keys
This commit is contained in:
parent
2bf1fc1837
commit
52c8bac795
|
@ -34,6 +34,9 @@
|
|||
}
|
||||
|
||||
for (let term of this.terms || []) {
|
||||
if (term.key.toLowerCase().includes(this.alt.toLowerCase())) {
|
||||
return term.key;
|
||||
}
|
||||
if (term.term.toLowerCase().includes(this.name.toLowerCase())) {
|
||||
return this.name;
|
||||
}
|
||||
|
|
|
@ -745,6 +745,10 @@ export class TermsEntry {
|
|||
return this.categories.includes(filter.substring(1));
|
||||
}
|
||||
|
||||
if (this.key && this.key.toLowerCase().indexOf(filter.toLowerCase()) > -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (let field of ['term', 'original']) {
|
||||
for (let value of this[field]) {
|
||||
if (value.toLowerCase().indexOf(filter.toLowerCase()) > -1) {
|
||||
|
|
Reference in New Issue