mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-21 02:48:00 +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
|
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> {
|
selectorOptionForProfile <T> (profile: Profile): SelectorOption<T> {
|
||||||
profile = this.getConfigProxyForProfile(profile)
|
profile = this.getConfigProxyForProfile(profile)
|
||||||
return {
|
return {
|
||||||
|
@@ -190,7 +190,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getDescription (profile: Profile): string|null {
|
getDescription (profile: Profile): string|null {
|
||||||
return this.profilesService.providerForProfile(profile)?.getDescription(profile) ?? null
|
return this.profilesService.getDescription(profile)
|
||||||
}
|
}
|
||||||
|
|
||||||
getTypeLabel (profile: Profile): string {
|
getTypeLabel (profile: Profile): string {
|
||||||
|
Reference in New Issue
Block a user