feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -16,6 +16,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import {
|
||||
FileCheck2 as ActionFileCheck2,
|
||||
RotateCcw as ActionRotateCcw,
|
||||
OctagonX as ActionOctagonX,
|
||||
Code2 as ActionCode2,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import {
|
||||
Button,
|
||||
@@ -27,7 +33,6 @@ import {
|
||||
Toast,
|
||||
Typography,
|
||||
} from '@/components/ui';
|
||||
import { Code2, FileCheck2, OctagonX, RotateCcw } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { API, getUserIdFromLocalStorage } from '../../helpers';
|
||||
import { useIsMobile } from '../../hooks/common/useIsMobile';
|
||||
@@ -253,7 +258,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
</Button>
|
||||
<Button
|
||||
size='small'
|
||||
icon={<FileCheck2 size={14} />}
|
||||
icon={<ActionFileCheck2 size={14} />}
|
||||
disabled={
|
||||
!versionId || row.review?.status !== 'reviewing' || !isReviewer
|
||||
}
|
||||
@@ -292,7 +297,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
</Button>
|
||||
<Button
|
||||
size='small'
|
||||
icon={<RotateCcw size={14} />}
|
||||
icon={<ActionRotateCcw size={14} />}
|
||||
disabled={!versionId}
|
||||
onClick={() =>
|
||||
askReason(t('回滚到当前列表版本'), (reason) =>
|
||||
@@ -308,7 +313,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
<Button
|
||||
size='small'
|
||||
type='danger'
|
||||
icon={<OctagonX size={14} />}
|
||||
icon={<ActionOctagonX size={14} />}
|
||||
disabled={row.definition.emergency_stopped}
|
||||
onClick={() =>
|
||||
askReason(t('紧急停用 Skill'), (reason) =>
|
||||
@@ -409,7 +414,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
</div>
|
||||
<div className='org-skills-hero-actions'>
|
||||
<PageGuideTrigger guide={guide} />
|
||||
<Button icon={<Code2 size={16} />} onClick={openCreateEditor}>
|
||||
<Button icon={<ActionCode2 size={16} />} onClick={openCreateEditor}>
|
||||
{t('创建私有 Skill')}
|
||||
</Button>
|
||||
</div>
|
||||
@@ -589,7 +594,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
</span>
|
||||
<Button
|
||||
size='small'
|
||||
icon={<RotateCcw size={14} />}
|
||||
icon={<ActionRotateCcw size={14} />}
|
||||
disabled={row.review?.status !== 'approved'}
|
||||
onClick={() =>
|
||||
askReason(t('回滚到该历史版本'), async (reason) => {
|
||||
@@ -630,7 +635,7 @@ const OrgPrivateSkills = ({ orgId }) => {
|
||||
render: (_, row) => (
|
||||
<Button
|
||||
size='small'
|
||||
icon={<RotateCcw size={14} />}
|
||||
icon={<ActionRotateCcw size={14} />}
|
||||
disabled={row.review?.status !== 'approved'}
|
||||
onClick={() =>
|
||||
askReason(t('回滚到该历史版本'), async (reason) => {
|
||||
|
||||
Reference in New Issue
Block a user