From 3794081cef1024ece2db8516106c021132fbc9ec Mon Sep 17 00:00:00 2001 From: Clem Fern Date: Tue, 21 Nov 2023 21:43:03 +0100 Subject: [PATCH] ref(ssh): use ProfilesService instead of ConfigService in profile settings --- tabby-ssh/src/components/sshProfileSettings.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tabby-ssh/src/components/sshProfileSettings.component.ts b/tabby-ssh/src/components/sshProfileSettings.component.ts index 59f148d8..a446762c 100644 --- a/tabby-ssh/src/components/sshProfileSettings.component.ts +++ b/tabby-ssh/src/components/sshProfileSettings.component.ts @@ -3,7 +3,7 @@ import { Component, ViewChild } from '@angular/core' import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { firstBy } from 'thenby' -import { ConfigService, FileProvidersService, Platform, HostAppService, PromptModalComponent, PartialProfile } from 'tabby-core' +import { FileProvidersService, Platform, HostAppService, PromptModalComponent, PartialProfile, ProfilesService } from 'tabby-core' import { LoginScriptsSettingsComponent } from 'tabby-terminal' import { PasswordStorageService } from '../services/passwordStorage.service' import { ForwardedPortConfig, SSHAlgorithmType, SSHProfile } from '../api' @@ -27,14 +27,14 @@ export class SSHProfileSettingsComponent { constructor ( public hostApp: HostAppService, - private config: ConfigService, + private profilesService: ProfilesService, private passwordStorage: PasswordStorageService, private ngbModal: NgbModal, private fileProviders: FileProvidersService, ) { } async ngOnInit () { - this.jumpHosts = this.config.store.profiles.filter(x => x.type === 'ssh' && x !== this.profile) + this.jumpHosts = (await this.profilesService.getProfiles({ includeBuiltin: false })).filter(x => x.type === 'ssh' && x !== this.profile) this.jumpHosts.sort(firstBy(x => this.getJumpHostLabel(x))) for (const k of Object.values(SSHAlgorithmType)) {