Merge pull request #3721 from jumpserver/pr@dev@ssh_key

perf: 【模版账号】创建/更新 模版账号表单中,希望增加上传密钥按钮
This commit is contained in:
feng626
2024-02-02 18:44:59 +08:00
committed by GitHub

View File

@@ -1,5 +1,5 @@
import { getUuidUpdateFromUrl } from '@/utils/common'
import { PasswordRule, UpdateToken } from '@/components/Form/FormFields'
import { PasswordRule, UpdateToken, UploadSecret } from '@/components/Form/FormFields'
import Select2 from '@/components/Form/FormFields/Select2'
import AutomationParams from '@/components/Apps/AutomationParams'
import i18n from '@/i18n/i18n'
@@ -68,6 +68,7 @@ export const templateFieldsMeta = (vm) => {
type: 'textarea',
rows: 4
},
component: UploadSecret,
hidden: (formValue) => formValue.secret_type !== 'ssh_key' || formValue.secret_strategy === 'random'
},
passphrase: {