Bläddra i källkod

✨ improve: Update disabled action tooltips for better accuracy

Update tooltip messages from "正在生成中,请稍候..." to "操作暂时被禁用"
in MessageActions component to better reflect that actions can be disabled
during both message generation and editing states.

Changes:
- Replace specific "generating" message with generic "temporarily disabled" message
- Applies to retry, edit, role toggle, and delete action tooltips
- Provides more accurate user feedback for disabled states

Files modified:
- web/src/components/playground/MessageActions.js
Apple\Apple 11 månader sedan
förälder
incheckning
87c9c51a7e
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      web/src/components/playground/MessageActions.js

+ 4 - 4
web/src/components/playground/MessageActions.js

@@ -33,7 +33,7 @@ const MessageActions = ({
   return (
   return (
     <div className="flex items-center gap-0.5">
     <div className="flex items-center gap-0.5">
       {!isLoading && (
       {!isLoading && (
-        <Tooltip content={shouldDisableActions ? t('正在生成中,请稍候...') : t('重试')} position="top">
+        <Tooltip content={shouldDisableActions ? t('操作暂时被禁用') : t('重试')} position="top">
           <Button
           <Button
             theme="borderless"
             theme="borderless"
             type="tertiary"
             type="tertiary"
@@ -62,7 +62,7 @@ const MessageActions = ({
       )}
       )}
 
 
       {canEdit && (
       {canEdit && (
-        <Tooltip content={shouldDisableActions ? t('正在生成中,请稍候...') : t('编辑')} position="top">
+        <Tooltip content={shouldDisableActions ? t('操作暂时被禁用') : t('编辑')} position="top">
           <Button
           <Button
             theme="borderless"
             theme="borderless"
             type="tertiary"
             type="tertiary"
@@ -80,7 +80,7 @@ const MessageActions = ({
         <Tooltip
         <Tooltip
           content={
           content={
             shouldDisableActions
             shouldDisableActions
-              ? t('正在生成中,请稍候...')
+              ? t('操作暂时被禁用')
               : message.role === 'assistant'
               : message.role === 'assistant'
                 ? t('切换为System角色')
                 ? t('切换为System角色')
                 : t('切换为Assistant角色')
                 : t('切换为Assistant角色')
@@ -101,7 +101,7 @@ const MessageActions = ({
       )}
       )}
 
 
       {!isLoading && (
       {!isLoading && (
-        <Tooltip content={shouldDisableActions ? t('正在生成中,请稍候...') : t('删除')} position="top">
+        <Tooltip content={shouldDisableActions ? t('操作暂时被禁用') : t('删除')} position="top">
           <Button
           <Button
             theme="borderless"
             theme="borderless"
             type="tertiary"
             type="tertiary"