mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 10:28:05 +00:00
delegate getDescription to ProfilesService
This commit is contained in:
@@ -73,6 +73,11 @@ export class ProfilesService {
|
||||
return this.profileProviders.find(x => x.id === profile.type) ?? null
|
||||
}
|
||||
|
||||
getDescription (profile: Profile): string|null {
|
||||
profile = this.getConfigProxyForProfile(profile)
|
||||
return this.providerForProfile(profile)?.getDescription(profile) ?? null
|
||||
}
|
||||
|
||||
selectorOptionForProfile <T> (profile: Profile): SelectorOption<T> {
|
||||
profile = this.getConfigProxyForProfile(profile)
|
||||
return {
|
||||
|
@@ -190,7 +190,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
||||
}
|
||||
|
||||
getDescription (profile: Profile): string|null {
|
||||
return this.profilesService.providerForProfile(profile)?.getDescription(profile) ?? null
|
||||
return this.profilesService.getDescription(profile)
|
||||
}
|
||||
|
||||
getTypeLabel (profile: Profile): string {
|
||||
|
Reference in New Issue
Block a user