perf: 支持发布机仅初始化配置

This commit is contained in:
Eric
2024-03-15 13:55:42 +08:00
committed by Bryan
parent 447013abf5
commit d8c165ca78
4 changed files with 21 additions and 1 deletions

View File

@@ -256,6 +256,7 @@
"SecretType": "Secret type",
"PrivilegedTemplate": "Privileged",
"InitialDeploy": "Initial deploy",
"OnlyInitialDeploy": "Initial Setup",
"Address": "Address",
"PrivateKey": "Private key",
"Secret": "Secret",

View File

@@ -459,6 +459,7 @@
"Token": "トークン",
"GatewayList": "ゲートウェイ一覧",
"InitialDeploy": "初期展開",
"OnlyInitialDeploy": "初期設定のみ",
"PrivateKey": "鍵",
"Category": "カテゴリー",
"SSHPort": "SSH ポート",

View File

@@ -280,7 +280,8 @@
"InAssetDetail": "在资产详情中更新账号信息",
"SecretType": "密文类型",
"PrivilegedTemplate": "特权的",
"InitialDeploy": "初始化部署",
"InitialDeploy": "初始化安装部署",
"OnlyInitialDeploy": "仅初始化配置",
"Address": "地址",
"PrivateKey": "密钥",
"Secret": "密码",

View File

@@ -115,6 +115,23 @@ export default {
}.bind(this)
}
},
{
title: this.$t('assets.OnlyInitialDeploy'),
attrs: {
type: 'primary',
label: this.$t('common.Deploy')
},
callbacks: {
click: function() {
this.$axios.post(
`/api/v1/terminal/applet-host-deployments/`,
{ host: this.object.id, install_applets: false }
).then(res => {
openTaskPage(res['task'])
})
}.bind(this)
}
},
{
title: this.$t('common.PublishAllApplets'),
attrs: {