Explorar o código

profile settings: allow filtering by description - fixes #5022

Eugene Pankov %!s(int64=4) %!d(string=hai) anos
pai
achega
4c663e4a20

+ 1 - 1
tabby-settings/src/components/profilesSettingsTab.component.ts

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