mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 14:34:54 +00:00
allow directly editing items from the profile selector - fixes #6039
This commit is contained in:
@@ -141,4 +141,15 @@ export class SSHProfilesService extends ProfileProvider<SSHProfile> {
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
intoQuickConnectString (profile: SSHProfile): string|null {
|
||||
let s = profile.options.host
|
||||
if (profile.options.user !== 'root') {
|
||||
s = `${profile.options.user}@${s}`
|
||||
}
|
||||
if (profile.options.port !== 22) {
|
||||
s = `${s}:${profile.options.port}`
|
||||
}
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user