feat(web): multi_agent app not support share
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* @Author: ZhaoYing
|
* @Author: ZhaoYing
|
||||||
* @Date: 2026-02-03 16:29:41
|
* @Date: 2026-02-03 16:29:41
|
||||||
* @Last Modified by: ZhaoYing
|
* @Last Modified by: ZhaoYing
|
||||||
* @Last Modified time: 2026-03-18 20:01:31
|
* @Last Modified time: 2026-03-18 20:57:24
|
||||||
*/
|
*/
|
||||||
import { type FC, useState, useEffect, useRef } from 'react';
|
import { type FC, useState, useEffect, useRef } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@@ -132,7 +132,7 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
{data?.type !== 'multi_agent' && <Button onClick={handleExport}>{t('common.export')}</Button>}
|
{data?.type !== 'multi_agent' && <Button onClick={handleExport}>{t('common.export')}</Button>}
|
||||||
{data.current_release_id !== selectedVersion.id && <Button onClick={handleRollback}>{t('application.willRollToThisVersion')}</Button>}
|
{data.current_release_id !== selectedVersion.id && <Button onClick={handleRollback}>{t('application.willRollToThisVersion')}</Button>}
|
||||||
<Button type="primary" ghost onClick={() => releaseShareModalRef.current?.handleOpen()}>{t('application.share')}</Button>
|
<Button type="primary" ghost onClick={() => releaseShareModalRef.current?.handleOpen()}>{t('application.share')}</Button>
|
||||||
<Button type="primary" ghost onClick={() => appSharingModalRef.current?.handleOpen()}>{t('application.sharing')}</Button>
|
{data?.type !== 'multi_agent' && <Button type="primary" ghost onClick={() => appSharingModalRef.current?.handleOpen()}>{t('application.sharing')}</Button>}
|
||||||
</>}
|
</>}
|
||||||
<Button type="primary" onClick={() => releaseModalRef.current?.handleOpen()}>{t('application.release')}</Button>
|
<Button type="primary" onClick={() => releaseModalRef.current?.handleOpen()}>{t('application.release')}</Button>
|
||||||
</Space>
|
</Space>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: ZhaoYing
|
* @Author: ZhaoYing
|
||||||
* @Date: 2026-02-03 16:34:12
|
* @Date: 2026-02-03 16:34:12
|
||||||
* @Last Modified by: ZhaoYing
|
* @Last Modified by: ZhaoYing
|
||||||
* @Last Modified time: 2026-03-18 10:50:33
|
* @Last Modified time: 2026-03-18 21:00:12
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Application Management Page
|
* Application Management Page
|
||||||
@@ -143,7 +143,7 @@ const ApplicationManagement: React.FC = () => {
|
|||||||
<Form.Item name="type" noStyle>
|
<Form.Item name="type" noStyle>
|
||||||
<Select
|
<Select
|
||||||
placeholder={t('application.applicationType')}
|
placeholder={t('application.applicationType')}
|
||||||
options={types.map((type) => ({
|
options={(activeTab === 'sharing' ? types.filter(type => type !== 'multi_agent') : types).map((type) => ({
|
||||||
value: type,
|
value: type,
|
||||||
label: t(`application.${type}`),
|
label: t(`application.${type}`),
|
||||||
}))}
|
}))}
|
||||||
@@ -185,6 +185,7 @@ const ApplicationManagement: React.FC = () => {
|
|||||||
<PageScrollList<Application, Query>
|
<PageScrollList<Application, Query>
|
||||||
ref={scrollListRef}
|
ref={scrollListRef}
|
||||||
url={getApplicationListUrl}
|
url={getApplicationListUrl}
|
||||||
|
needLoading={false}
|
||||||
query={{ ...query, shared_only: activeTab === 'sharing', include_shared: activeTab !== 'apps' }}
|
query={{ ...query, shared_only: activeTab === 'sharing', include_shared: activeTab !== 'apps' }}
|
||||||
renderItem={(item) => (
|
renderItem={(item) => (
|
||||||
<RbCard
|
<RbCard
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: ZhaoYing
|
* @Author: ZhaoYing
|
||||||
* @Date: 2026-02-06 21:09:47
|
* @Date: 2026-02-06 21:09:47
|
||||||
* @Last Modified by: ZhaoYing
|
* @Last Modified by: ZhaoYing
|
||||||
* @Last Modified time: 2026-03-18 15:50:31
|
* @Last Modified time: 2026-03-18 21:10:01
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Upload File List Modal Component
|
* Upload File List Modal Component
|
||||||
@@ -120,16 +120,16 @@ const UploadFileListModal = forwardRef<UploadFileListModalRef, UploadFileListMod
|
|||||||
<Select
|
<Select
|
||||||
placeholder={t('memoryConversation.fileType')}
|
placeholder={t('memoryConversation.fileType')}
|
||||||
options={fileTypeOptions}
|
options={fileTypeOptions}
|
||||||
className="rb:w-30"
|
className="rb:w-30!"
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem
|
<FormItem
|
||||||
{...restField}
|
{...restField}
|
||||||
name={[name, 'url']}
|
name={[name, 'url']}
|
||||||
rules={[{ required: true, message: t('common.pleaseEnter') }]}
|
rules={[{ required: true, message: t('common.pleaseEnter') }]}
|
||||||
className="rb:mb-0!"
|
className="rb:mb-0! rb:flex-1!"
|
||||||
>
|
>
|
||||||
<Input placeholder={t('memoryConversation.fileUrl')} className="rb:w-82.5!" />
|
<Input placeholder={t('memoryConversation.fileUrl')} />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<div
|
<div
|
||||||
className="rb:w-5 rb:h-5 rb:cursor-pointer rb:bg-cover rb:bg-[url('@/assets/images/delete.svg')] rb:hover:bg-[url('@/assets/images/delete_hover.svg')]"
|
className="rb:w-5 rb:h-5 rb:cursor-pointer rb:bg-cover rb:bg-[url('@/assets/images/delete.svg')] rb:hover:bg-[url('@/assets/images/delete_hover.svg')]"
|
||||||
|
|||||||
Reference in New Issue
Block a user