This commit is contained in:
Eugene Pankov
2021-08-15 19:42:26 +02:00
parent 70b6be7301
commit c4490717c0

View File

@@ -42,7 +42,11 @@ export class EditProfileModalComponent<P extends Profile> {
colorsAutocomplete = text$ => text$.pipe(
debounceTime(200),
distinctUntilChanged(),
map((q: string) => TAB_COLORS.filter(x => !q || x.toString().startsWith(q)).map(x => x.value))
map((q: string) =>
TAB_COLORS
.filter(x => !q || x.name.toLowerCase().startsWith(q.toLowerCase()))
.map(x => x.value)
)
)
colorsFormatter = value => {