修复按钮禁用逻辑:临时禁用状态检查功能
- 临时禁用"检查状态"按钮(功能开发中) - 移除"启用"按钮对在线状态的依赖 - 修复因状态检查未完成导致所有供应商无法启用的问题
This commit is contained in:
@@ -88,14 +88,14 @@ const ProviderList: React.FC<ProviderListProps> = ({
|
|||||||
<button
|
<button
|
||||||
className="check-btn"
|
className="check-btn"
|
||||||
onClick={() => onCheckStatus(provider.id)}
|
onClick={() => onCheckStatus(provider.id)}
|
||||||
disabled={isChecking}
|
disabled={true}
|
||||||
>
|
>
|
||||||
{isChecking ? '检查中' : '检查状态'}
|
{isChecking ? '检查中' : '检查状态'}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="enable-btn"
|
className="enable-btn"
|
||||||
onClick={() => onSwitch(provider.id)}
|
onClick={() => onSwitch(provider.id)}
|
||||||
disabled={!status?.isOnline || isCurrent}
|
disabled={isCurrent}
|
||||||
>
|
>
|
||||||
启用
|
启用
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user