delegate getDescription to ProfilesService

上级 d7741f07
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册