From 11894d043e6d18c249fe45de8e8beb05c3f59a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Fri, 24 May 2024 19:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/steedos/steedos-platform/issues/6871 --- .../@steedos-widgets/amis-lib/src/locales/en-US.json | 1 + .../@steedos-widgets/amis-lib/src/locales/zh-CN.json | 1 + .../amis-object/src/amis/AmisGlobalHeaderToolbar.tsx | 9 +++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/@steedos-widgets/amis-lib/src/locales/en-US.json b/packages/@steedos-widgets/amis-lib/src/locales/en-US.json index 100743ec..4bd6dbb3 100644 --- a/packages/@steedos-widgets/amis-lib/src/locales/en-US.json +++ b/packages/@steedos-widgets/amis-lib/src/locales/en-US.json @@ -70,6 +70,7 @@ "frontend_notifications": "Notifications", "frontend_notifications_allread": "Mark all as read", "frontend_notifications_allread_message": "All marked as read", + "frontend_notifications_close_dialog": "Close", "frontend_profile": "Profile", "switch_space": "Switch Space", "frontend_about": "About", diff --git a/packages/@steedos-widgets/amis-lib/src/locales/zh-CN.json b/packages/@steedos-widgets/amis-lib/src/locales/zh-CN.json index 12c0323c..57263c51 100644 --- a/packages/@steedos-widgets/amis-lib/src/locales/zh-CN.json +++ b/packages/@steedos-widgets/amis-lib/src/locales/zh-CN.json @@ -71,6 +71,7 @@ "frontend_notifications": "通知", "frontend_notifications_allread": "全部标记为已读", "frontend_notifications_allread_message": "已全部标记为已读", + "frontend_notifications_close_dialog": "关闭", "frontend_profile": "个人资料", "switch_space": "切换工作区", "frontend_about": "关于", diff --git a/packages/@steedos-widgets/amis-object/src/amis/AmisGlobalHeaderToolbar.tsx b/packages/@steedos-widgets/amis-object/src/amis/AmisGlobalHeaderToolbar.tsx index b76ccdd6..d9edaca2 100644 --- a/packages/@steedos-widgets/amis-object/src/amis/AmisGlobalHeaderToolbar.tsx +++ b/packages/@steedos-widgets/amis-object/src/amis/AmisGlobalHeaderToolbar.tsx @@ -3,7 +3,7 @@ * @Author: baozhoutao@steedos.com * @Date: 2022-09-01 14:44:57 * @LastEditors: 殷亮辉 yinlianghui@hotoa.com - * @LastEditTime: 2024-05-24 19:16:50 + * @LastEditTime: 2024-05-24 19:37:30 * @Description: */ @@ -117,11 +117,16 @@ const getNotificationBadgeButton = () => { }, ], actions: [ + { + "type": "button", + "label": i18next.t('frontend_notifications_close_dialog'), + "visibleOn": "${window:innerWidth <= 768}", + "close": true + }, { "type": "button", "label": i18next.t('frontend_notifications_allread'), "id": "u:5530f3779e3a", - "close": true, "onEvent": { "click": { "actions": [