This commit is contained in:
Eugene Pankov 2021-08-15 19:42:26 +02:00
parent 70b6be7301
commit c4490717c0
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

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 => {