외벽선 확정, 일변전으로 돌아가기 조건 추가
This commit is contained in:
parent
8834f975a8
commit
85182725df
@ -388,6 +388,9 @@ export default function OuterLineWall(props) {
|
||||
}
|
||||
|
||||
const handleFix = () => {
|
||||
if (points.length < 3) {
|
||||
return
|
||||
}
|
||||
setPoints((prev) => {
|
||||
if (prev.length === 0) {
|
||||
return []
|
||||
@ -498,10 +501,10 @@ export default function OuterLineWall(props) {
|
||||
<></>
|
||||
)}
|
||||
<div className="flex-check-box for2 btn">
|
||||
<button className="arr-btn dark" onClick={handleFix}>
|
||||
<button className={`arr-btn dark ${points.length >= 3 ? 'act' : ''}`} onClick={handleFix}>
|
||||
<span>{getMessage('modal.cover.outline.fix')}</span>
|
||||
</button>
|
||||
<button className="arr-btn dark act" onClick={handleRollback}>
|
||||
<button className={`arr-btn dark ${points.length >= 1 ? 'act' : ''}`} onClick={handleRollback}>
|
||||
<span>{getMessage('modal.cover.outline.rollback')}</span>
|
||||
</button>
|
||||
<button className="arr-btn dark">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user