better matching algorithm descriptions

This commit is contained in:
jonaswinkler
2021-01-01 23:08:02 +01:00
parent ebdddc4fe4
commit c4367818b7
5 changed files with 10 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ export abstract class GenericListComponent<T extends ObjectWithId> implements On
if (o.matching_algorithm == MATCH_AUTO) {
return $localize`Automatic`
} else if (o.match && o.match.length > 0) {
return `${o.match} (${MATCHING_ALGORITHMS.find(a => a.id == o.matching_algorithm).name})`
return `${MATCHING_ALGORITHMS.find(a => a.id == o.matching_algorithm).shortName}: ${o.match}`
} else {
return "-"
}