mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-06 08:31:54 +00:00
ref ef6b8a4eaa
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { NewTabParameters, PartialProfile, TranslateService, ConnectableProfileProvider } from 'tabby-core'
|
||||
import { NewTabParameters, PartialProfile, TranslateService, QuickConnectProfileProvider } from 'tabby-core'
|
||||
import { TelnetProfileSettingsComponent } from './components/telnetProfileSettings.component'
|
||||
import { TelnetTabComponent } from './components/telnetTab.component'
|
||||
import { TelnetProfile } from './session'
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class TelnetProfilesService extends ConnectableProfileProvider<TelnetProfile> {
|
||||
export class TelnetProfilesService extends QuickConnectProfileProvider<TelnetProfile> {
|
||||
id = 'telnet'
|
||||
name = 'Telnet'
|
||||
supportsQuickConnect = true
|
||||
@@ -96,4 +96,12 @@ export class TelnetProfilesService extends ConnectableProfileProvider<TelnetProf
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
intoQuickConnectString (profile: TelnetProfile): string | null {
|
||||
let s = profile.options.host
|
||||
if (profile.options.port !== 23) {
|
||||
s = `${s}:${profile.options.port}`
|
||||
}
|
||||
return s
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user