profile settings: allow filtering by description - fixes #5022

This commit is contained in:
Eugene Pankov 2021-12-08 20:58:13 +01:00
parent a34e4c236d
commit 4c663e4a20
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -211,7 +211,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
}
isProfileVisible (profile: PartialProfile<Profile>): boolean {
return !this.filter || profile.name.toLowerCase().includes(this.filter.toLowerCase())
return !this.filter || (profile.name + '$' + (this.getDescription(profile) ?? '')).toLowerCase().includes(this.filter.toLowerCase())
}
iconIsSVG (icon?: string): boolean {