perf: 支持发布机卸载远程应用

This commit is contained in:
Eric
2024-03-21 12:36:52 +08:00
committed by Bryan
parent 9b43bba6f8
commit 6db2d5ae31
4 changed files with 17 additions and 0 deletions

View File

@@ -561,6 +561,7 @@
"Automations": "Automation",
"Sync": "Sync",
"Deploy": "Deploy",
"Uninstall": "Uninstall",
"Detail": "Detail",
"Selector": "Selector",
"NoContent": "No content",

View File

@@ -885,6 +885,7 @@
"failedConditions": "条件に達していない結果!"
},
"Deploy": "配備",
"Uninstall": "アンインストールする",
"Publish": "リリース",
"Icon": "アイコン",
"Automations": "オートメーション",

View File

@@ -599,6 +599,7 @@
"Automations": "自动化",
"Sync": "同步",
"Deploy": "部署",
"Uninstall": "卸载",
"Detail": "详情",
"Selector": "选择器",
"NoContent": "暂无内容",

View File

@@ -91,6 +91,20 @@ export default {
openTaskPage(res['task'])
})
}
},
{
title: this.$t('common.Uninstall'),
callback: function({ row }) {
this.$axios.post(
`/api/v1/terminal/applet-host-deployments/uninstall/`,
{
hosts: [row.host.id],
applet_id: row.applet.id
}
).then(res => {
openTaskPage(res['task'])
})
}
}
]
}