add list count by each maintainer in maintainer filter select

ref #455
This commit is contained in:
Collin M. Barrett 2018-09-28 05:28:30 -05:00
parent 5fca7674db
commit bc8ced6be9

View file

@ -36,7 +36,10 @@ const Filter = (props: any, maintainers: IMaintainer[]) =>
<option value="any">Any</option>
{maintainers.length > 0
? maintainers.sort((a, b) => a.name.localeCompare(b.name))
.map((m: IMaintainer, i: number) => <option value={m.id} key={i}>{m.name}</option>)
.map((m: IMaintainer, i: number) =>
<option value={m.id} key={i}>
{m.name} ({m.filterListIds ? m.filterListIds.length : 0})
</option>)
: null}
</select>;