Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
@@ -10,15 +10,15 @@ type InstallButtonProps = {
|
||||
const InstallButton = ({ loading, onInstall, t }: InstallButtonProps) => {
|
||||
return (
|
||||
<Button size='small' className='z-[100]' onClick={onInstall}>
|
||||
<div className={`flex px-[3px] justify-center items-center gap-1
|
||||
<div className={`flex items-center justify-center gap-1 px-[3px]
|
||||
${loading ? 'text-components-button-secondary-text-disabled' : 'text-components-button-secondary-text'}
|
||||
system-xs-medium`}
|
||||
>
|
||||
{loading ? t('workflow.nodes.agent.pluginInstaller.installing') : t('workflow.nodes.agent.pluginInstaller.install')}
|
||||
</div>
|
||||
{loading
|
||||
? <RiLoader2Line className='w-3.5 h-3.5 text-text-quaternary animate-spin' />
|
||||
: <RiInstallLine className='w-3.5 h-3.5 text-text-secondary' />
|
||||
? <RiLoader2Line className='h-3.5 w-3.5 animate-spin text-text-quaternary' />
|
||||
: <RiInstallLine className='h-3.5 w-3.5 text-text-secondary' />
|
||||
}
|
||||
</Button>
|
||||
)
|
||||
|
Reference in New Issue
Block a user