From 6db2d5ae3193a16b1f11f6590c93cf2cc5caad3a Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 21 Mar 2024 12:36:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=94=AF=E6=8C=81=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=9C=BA=E5=8D=B8=E8=BD=BD=E8=BF=9C=E7=A8=8B=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en.json | 1 + src/i18n/langs/ja.json | 1 + src/i18n/langs/zh.json | 1 + .../Applet/AppletHost/AppletHostDetail/Applets.vue | 14 ++++++++++++++ 4 files changed, 17 insertions(+) diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 936102420..c5406fe02 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -561,6 +561,7 @@ "Automations": "Automation", "Sync": "Sync", "Deploy": "Deploy", + "Uninstall": "Uninstall", "Detail": "Detail", "Selector": "Selector", "NoContent": "No content", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 49a3bc9ee..4c541f42f 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -885,6 +885,7 @@ "failedConditions": "条件に達していない結果!" }, "Deploy": "配備", + "Uninstall": "アンインストールする", "Publish": "リリース", "Icon": "アイコン", "Automations": "オートメーション", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 383e68168..8ab3fea04 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -599,6 +599,7 @@ "Automations": "自动化", "Sync": "同步", "Deploy": "部署", + "Uninstall": "卸载", "Detail": "详情", "Selector": "选择器", "NoContent": "暂无内容", diff --git a/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue b/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue index ebde6cf93..4fdf83ccc 100644 --- a/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue +++ b/src/views/settings/Applet/AppletHost/AppletHostDetail/Applets.vue @@ -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']) + }) + } } ] }