feat: 刷新时禁止添加
This commit is contained in:
@@ -8,7 +8,8 @@ export default function ScanImportConfirmModal({
|
||||
selectedScannedCodes,
|
||||
onClose,
|
||||
onToggle,
|
||||
onConfirm
|
||||
onConfirm,
|
||||
refreshing
|
||||
}) {
|
||||
return (
|
||||
<motion.div
|
||||
@@ -78,7 +79,7 @@ export default function ScanImportConfirmModal({
|
||||
)}
|
||||
<div style={{ display: 'flex', gap: 8, justifyContent: 'flex-end', marginTop: 12 }}>
|
||||
<button className="button secondary" onClick={onClose}>取消</button>
|
||||
<button className="button" onClick={onConfirm} disabled={selectedScannedCodes.size === 0}>确认导入</button>
|
||||
<button className="button" onClick={onConfirm} disabled={selectedScannedCodes.size === 0 || refreshing}>确认导入</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
|
||||
Reference in New Issue
Block a user