better new profile name handling - fixes #4325

This commit is contained in:
Eugene Pankov
2021-08-02 20:52:39 +02:00
parent c1a1f53707
commit ab8061ab39
6 changed files with 32 additions and 3 deletions

View File

@@ -62,6 +62,10 @@ export class TelnetProfilesService extends ProfileProvider<TelnetProfile> {
}
}
getSuggestedName (profile: TelnetProfile): string|null {
return this.getDescription(profile) || null
}
getDescription (profile: TelnetProfile): string {
return profile.options.host ? `${profile.options.host}:${profile.options.port}` : ''
}