fix: datasource

This commit is contained in:
zxhlyh 2025-06-10 15:40:15 +08:00
parent f4789d750d
commit 978118f770
2 changed files with 14 additions and 12 deletions

View File

@ -175,17 +175,19 @@ const Popup = () => {
</div> </div>
<RiArrowRightUpLine className='ml-2 h-4 w-4 shrink-0' /> <RiArrowRightUpLine className='ml-2 h-4 w-4 shrink-0' />
</Button> </Button>
<Button <a href='/datasets?category=api' target='_blank'>
className='w-full hover:bg-state-accent-hover hover:text-text-accent' <Button
variant='tertiary' className='w-full hover:bg-state-accent-hover hover:text-text-accent'
disabled={!publishedAt} variant='tertiary'
> disabled={!publishedAt}
<div className='flex grow items-center'> >
<RiTerminalBoxLine className='mr-2 h-4 w-4' /> <div className='flex grow items-center'>
{t('workflow.common.accessAPIReference')} <RiTerminalBoxLine className='mr-2 h-4 w-4' />
</div> {t('workflow.common.accessAPIReference')}
<RiArrowRightUpLine className='ml-2 h-4 w-4 shrink-0' /> </div>
</Button> <RiArrowRightUpLine className='ml-2 h-4 w-4 shrink-0' />
</Button>
</a>
<Divider className='my-2' /> <Divider className='my-2' />
<Button <Button
className='w-full hover:bg-state-accent-hover hover:text-text-accent' className='w-full hover:bg-state-accent-hover hover:text-text-accent'

View File

@ -107,7 +107,7 @@ const Panel: FC<NodePanelProps<DataSourceNodeType>> = ({ id, data }) => {
) )
} }
{ {
isAuthorized && !isLocalFile && ( isAuthorized && !isLocalFile && !!formSchemas?.length && (
<BoxGroupField <BoxGroupField
boxGroupProps={{ boxGroupProps={{
boxProps: { withBorderBottom: true }, boxProps: { withBorderBottom: true },