feat(web): add workspace sharing management i18n and update share modal
- Add new i18n keys for share management UI (shareSpace, shareSpaceTitle, shareSpaceNote) in both English and Chinese translations - Update ShareModal title to use new 'shareSpace' i18n key for better UX clarity - Update ShareModal description and note text to use new i18n keys (shareSpaceTitle, shareSpaceNote) - Fix parser_config field name from 'third_party_platform' to '_third_party_platform' in CreateModal for proper form binding - Improve share modal messaging to better communicate workspace sharing status and access control
This commit is contained in:
@@ -579,7 +579,7 @@ const CreateModal = forwardRef<CreateModalRef, CreateModalRefProps>(({
|
||||
{currentType === 'Third-party' && (
|
||||
<>
|
||||
<Form.Item
|
||||
name={['parser_config', 'third_party_platform']}
|
||||
name={['parser_config', '_third_party_platform']}
|
||||
label={t('knowledgeBase.createForm.platform')}
|
||||
rules={[{ required: true, message: t('knowledgeBase.createForm.platformRequired') }]}
|
||||
initialValue="yuque"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* @Author: yujiangping
|
||||
* @Date: 2025-11-10 18:52:55
|
||||
* @LastEditors: yujiangping
|
||||
* @LastEditTime: 2026-02-03 17:08:00
|
||||
* @LastEditTime: 2026-02-10 15:18:32
|
||||
*/
|
||||
import { forwardRef, useImperativeHandle, useState, useRef } from 'react';
|
||||
import { Switch } from 'antd';
|
||||
@@ -93,7 +93,7 @@ const ShareModal = forwardRef<ShareModalRef,ShareModalRefProps>(({ handleShare:
|
||||
<>
|
||||
{contextHolder}
|
||||
<RbModal
|
||||
title={t('knowledgeBase.toWorkspace')}
|
||||
title={t('knowledgeBase.shareSpace')}
|
||||
open={visible}
|
||||
onCancel={handleClose}
|
||||
okText={t('knowledgeBase.share')}
|
||||
@@ -101,8 +101,8 @@ const ShareModal = forwardRef<ShareModalRef,ShareModalRefProps>(({ handleShare:
|
||||
confirmLoading={loading}
|
||||
>
|
||||
<div className='rb:flex rb:flex-col rb:text-left'>
|
||||
<h4 className='rb:text-sm rb:font-medium rb:text-gray-800'>{t('knowledgeBase.shareTitle')}</h4>
|
||||
<span className='rb:text-xs rb:text-gray-500'>{t('knowledgeBase.shareNote')}</span>
|
||||
<h4 className='rb:text-sm rb:font-medium rb:text-gray-800'>{t('knowledgeBase.shareSpaceTitle')}</h4>
|
||||
<span className='rb:text-xs rb:text-gray-500'>{t('knowledgeBase.shareSpaceNote')}</span>
|
||||
<div className='rb:flex rb:flex-col rb:text-left rb:gap-4 rb:mt-4 '>
|
||||
{spaceList.length === 0 && (
|
||||
<NoData />
|
||||
|
||||
Reference in New Issue
Block a user