mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-08 13:30:02 +00:00
parent
7048c2c10c
commit
00b43e88dc
@ -94,8 +94,9 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
EditProfileModalComponent,
|
EditProfileModalComponent,
|
||||||
{ size: 'lg' },
|
{ size: 'lg' },
|
||||||
)
|
)
|
||||||
|
const provider = this.profilesService.providerForProfile(profile)
|
||||||
modal.componentInstance.profile = Object.assign({}, profile)
|
modal.componentInstance.profile = Object.assign({}, profile)
|
||||||
modal.componentInstance.profileProvider = this.profilesService.providerForProfile(profile)
|
modal.componentInstance.profileProvider = provider
|
||||||
const result = await modal.result
|
const result = await modal.result
|
||||||
|
|
||||||
// Fully replace the config
|
// Fully replace the config
|
||||||
@ -105,7 +106,7 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
Object.assign(profile, result)
|
Object.assign(profile, result)
|
||||||
|
|
||||||
profile.type = modal.componentInstance.profileProvider.id
|
profile.type = provider.id
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteProfile (profile: PartialProfile<Profile>): Promise<void> {
|
async deleteProfile (profile: PartialProfile<Profile>): Promise<void> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user