mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-05 22:44:55 +00:00
reworked login scripts - fixes #1349
This commit is contained in:
@@ -189,6 +189,6 @@ ul.nav-tabs(ngbNav, #nav='ngbNav')
|
||||
li(ngbNavItem)
|
||||
a(ngbNavLink) Login scripts
|
||||
ng-template(ngbNavContent)
|
||||
login-scripts-settings([options]='profile.options')
|
||||
login-scripts-settings([options]='profile.options', #loginScriptsSettings)
|
||||
|
||||
div([ngbNavOutlet]='nav')
|
||||
|
@@ -1,8 +1,9 @@
|
||||
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
||||
import { Component } from '@angular/core'
|
||||
import { Component, ViewChild } from '@angular/core'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
|
||||
import { ConfigService, FileProvidersService, Platform, HostAppService, PromptModalComponent } from 'tabby-core'
|
||||
import { LoginScriptsSettingsComponent } from 'tabby-terminal'
|
||||
import { PasswordStorageService } from '../services/passwordStorage.service'
|
||||
import { ForwardedPortConfig, SSHAlgorithmType, SSHProfile } from '../api'
|
||||
import { SSHProfilesService } from '../profiles'
|
||||
@@ -20,6 +21,7 @@ export class SSHProfileSettingsComponent {
|
||||
supportedAlgorithms: Record<string, string> = {}
|
||||
algorithms: Record<string, Record<string, boolean>> = {}
|
||||
jumpHosts: SSHProfile[]
|
||||
@ViewChild('loginScriptsSettings') loginScriptsSettings: LoginScriptsSettingsComponent|null
|
||||
|
||||
constructor (
|
||||
public hostApp: HostAppService,
|
||||
@@ -92,6 +94,7 @@ export class SSHProfileSettingsComponent {
|
||||
if (!this.useProxyCommand) {
|
||||
this.profile.options.proxyCommand = undefined
|
||||
}
|
||||
this.loginScriptsSettings?.save()
|
||||
}
|
||||
|
||||
onForwardAdded (fw: ForwardedPortConfig) {
|
||||
|
Reference in New Issue
Block a user