From a53a5da31791138f353121b0adc1016f8150b5a2 Mon Sep 17 00:00:00 2001 From: GONGONGONG <506419689@qq.com> Date: Fri, 24 Feb 2023 16:13:24 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E6=89=8B=E5=8A=A8=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=8C=87=E5=BC=95=20-=20=E4=BB=BB=E5=8A=A1=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E8=A6=86=E7=9B=96(closed=20#1421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/i18n/en.js | 2 ++ frontend/src/i18n/zh.js | 2 ++ frontend/src/views/task/task-detail-table.vue | 15 +++++++++++++-- frontend/src/views/task/task-log.vue | 15 +++++++++++++-- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/frontend/src/i18n/en.js b/frontend/src/i18n/en.js index ceaec94f2..3550e1f8b 100644 --- a/frontend/src/i18n/en.js +++ b/frontend/src/i18n/en.js @@ -658,6 +658,8 @@ export default { 操作指引: 'Operation guide', 手动安装Guide: 'Installation', 手动卸载Guide: 'Uninstall', + 手动卸载Agent: 'Uninstall Agent', + 手动卸载Proxy: 'Uninstall Proxy', 插件管理: 'Plugin', 全局配置: 'Global Configuration', diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index 9630a7e4a..744d47cb8 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -658,6 +658,8 @@ export default { 操作指引: '操作指引', 手动安装Guide: '安装', 手动卸载Guide: '卸载', + 手动卸载Agent: '卸载Agent', + 手动卸载Proxy: '卸载Proxy', 插件管理: '插件管理', 全局配置: '全局配置', diff --git a/frontend/src/views/task/task-detail-table.vue b/frontend/src/views/task/task-detail-table.vue index 6ffee6f1b..141baff0f 100644 --- a/frontend/src/views/task/task-detail-table.vue +++ b/frontend/src/views/task/task-detail-table.vue @@ -208,8 +208,19 @@ export default class TaskDeatailTable extends Mixins(HeaderRenderMixin) { return MainStore.windowHeight - 322; } private get commandStep() { - return [this.$t('手动安装Guide'), '安装', this.$t('手动卸载Guide'), '卸载', '卸载Agent', '卸载Proxy']; - // return this.isUninstallType ? [this.$t('手动卸载Guide'), '卸载'] : [this.$t('手动安装Guide'), '安装']; + return [ + // => proxy安装、agent安装、agent重装 + '安装', 'Install', this.$t('安装'), + 'Installation', this.$t('手动安装Guide'), + // Agent卸载 + '卸载Agent', 'Uninstall Agent', this.$t('手动卸载Agent'), + // Proxy卸载 + '卸载Proxy', 'Uninstall Proxy', this.$t('手动卸载Proxy'), + // 卸载 + '卸载', 'Uninstall', 'Uninstallation', this.$t('手动卸载Guide'), + // other + this.$t('Proxy安装'), + ]; } private get showTargetVersionColumn() { return this.category === 'policy'; diff --git a/frontend/src/views/task/task-log.vue b/frontend/src/views/task/task-log.vue index 5ad500374..99df3c844 100644 --- a/frontend/src/views/task/task-log.vue +++ b/frontend/src/views/task/task-log.vue @@ -375,8 +375,19 @@ export default { return /(INSTALL)|(REINSTALL)|(UPGRADE)/ig.test(this.jobType); }, commandStep() { - return [this.$t('手动安装Guide'), '安装', this.$t('手动卸载Guide'), '卸载', '卸载Agent', '卸载Proxy']; - // return /UN/ig.test(this.jobType) ? [this.$t('手动卸载Guide'), '卸载'] : [this.$t('手动安装Guide'), '安装']; + return [ + // => proxy安装、agent安装、agent重装 + '安装', 'Install', this.$t('安装'), + 'Installation', this.$t('手动安装Guide'), + // Agent卸载 + '卸载Agent', 'Uninstall Agent', this.$t('手动卸载Agent'), + // Proxy卸载 + '卸载Proxy', 'Uninstall Proxy', this.$t('手动卸载Proxy'), + // 卸载 + '卸载', 'Uninstall', 'Uninstallation', this.$t('手动卸载Guide'), + // other + this.$t('Proxy安装'), + ]; }, }, watch: {