From f5dcb5d92561dde47f7c5fa65e93ff132086e6b1 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 30 Nov 2023 10:44:08 +0800 Subject: [PATCH] feat: refine ui permissions of actuator page (#4945) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area console /kind improvement /milestone 2.11.x #### What this PR does / why we need it: 完善系统概览页面的 UI 权限控制。 #### Does this PR introduce a user-facing change? ```release-note 完善系统概览页面的 UI 权限控制。 ``` --- console/console-src/modules/system/actuator/module.ts | 1 + console/src/locales/en.yaml | 2 ++ console/src/locales/zh-CN.yaml | 2 ++ console/src/locales/zh-TW.yaml | 2 ++ 4 files changed, 7 insertions(+) diff --git a/console/console-src/modules/system/actuator/module.ts b/console/console-src/modules/system/actuator/module.ts index 5e88a17bd..c31e1b749 100644 --- a/console/console-src/modules/system/actuator/module.ts +++ b/console/console-src/modules/system/actuator/module.ts @@ -17,6 +17,7 @@ export default definePlugin({ meta: { title: "core.actuator.title", searchable: true, + permissions: ["system:actuator:manage"], menu: { name: "core.sidebar.menu.items.actuator", group: "system", diff --git a/console/src/locales/en.yaml b/console/src/locales/en.yaml index 800c35b1b..2e7f659d4 100644 --- a/console/src/locales/en.yaml +++ b/console/src/locales/en.yaml @@ -1176,6 +1176,8 @@ core: Migration Manage: Backup and Restore Manage role-template-view-users: User View role-template-change-password: Change Password + Actuator Management: System Information + Actuator Manage: Access System Information components: submit_button: computed_text: "{text} ({shortcut})" diff --git a/console/src/locales/zh-CN.yaml b/console/src/locales/zh-CN.yaml index 1598c262e..5e96f39fa 100644 --- a/console/src/locales/zh-CN.yaml +++ b/console/src/locales/zh-CN.yaml @@ -1176,6 +1176,8 @@ core: Migration Manage: 备份与恢复管理 role-template-view-users: 用户查看 role-template-change-password: 修改密码 + Actuator Management: 系统指标 + Actuator Manage: 访问系统指标 components: submit_button: computed_text: "{text}({shortcut})" diff --git a/console/src/locales/zh-TW.yaml b/console/src/locales/zh-TW.yaml index e3af4a59e..a09ae79ee 100644 --- a/console/src/locales/zh-TW.yaml +++ b/console/src/locales/zh-TW.yaml @@ -1176,6 +1176,8 @@ core: Migration Manage: 備份與還原管理 role-template-view-users: 用戶查看 role-template-change-password: 修改密碼 + Actuator Management: 系統指標 + Actuator Manage: 訪問系統指標 components: submit_button: computed_text: "{text}({shortcut})"