mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
ignore fewer errors in profileSettingsTab
This commit is contained in:
@@ -102,17 +102,20 @@ export class ProfilesSettingsTabComponent extends BaseComponent {
|
|||||||
}
|
}
|
||||||
modal.componentInstance.profile = deepClone(profile)
|
modal.componentInstance.profile = deepClone(profile)
|
||||||
modal.componentInstance.profileProvider = provider
|
modal.componentInstance.profileProvider = provider
|
||||||
try {
|
|
||||||
const result = await modal.result
|
|
||||||
// Fully replace the config
|
|
||||||
for (const k in profile) {
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
||||||
delete profile[k]
|
|
||||||
}
|
|
||||||
Object.assign(profile, result)
|
|
||||||
|
|
||||||
profile.type = provider.id
|
const result = await modal.result.catch(() => null)
|
||||||
} catch (e) { }
|
if (!result) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fully replace the config
|
||||||
|
for (const k in profile) {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
||||||
|
delete profile[k]
|
||||||
|
}
|
||||||
|
Object.assign(profile, result)
|
||||||
|
|
||||||
|
profile.type = provider.id
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteProfile (profile: PartialProfile<Profile>): Promise<void> {
|
async deleteProfile (profile: PartialProfile<Profile>): Promise<void> {
|
||||||
|
Reference in New Issue
Block a user