Compare commits

..

7 Commits

Author SHA1 Message Date
김민식
253ddc258a Merge remote-tracking branch 'origin/qcast-pub' into dev 2025-04-18 14:25:14 +09:00
김민식
cb960baa0c Merge branch 'dev' of https://git.hanasys.jp/qcast3/qcast-front into dev 2025-04-18 14:25:08 +09:00
김민식
51a2782d3c plan 추가 로직 삼항연산자 -> if 로 변경 2025-04-18 14:24:46 +09:00
김민식
e717c28758 Merge branch 'dev' of https://git.hanasys.jp/qcast3/qcast-front into dev
# Conflicts:
#	README.md
2025-04-18 10:23:33 +09:00
김민식
bfc7b3fe32 Revert "Trestle 데이터 추가 수정"
This reverts commit 648c2e208a89c0080e49d9c570ac2b3700374b2a.
2025-04-02 16:54:21 +09:00
김민식
648c2e208a Trestle 데이터 추가 수정 2025-04-02 16:54:04 +09:00
김민식
ebbf010e6e Merge branch 'dev' of https://git.hanasys.jp/qcast3/qcast-front into dev
# Conflicts:
#	README.md
2025-04-02 16:08:42 +09:00

View File

@ -449,26 +449,26 @@ export function usePlan(params = {}) {
if (currentCanvasPlan?.id) {
await saveCanvas(false)
}
JSON.parse(currentCanvasData()).objects.length > 0
? swalFire({
text: `Plan ${currentCanvasPlan.planNo} ` + getMessage('plan.message.confirm.copy'),
type: 'confirm',
confirmFn: async () => {
setIsGlobalLoading(true)
await postObjectPlan(userId, objectNo, true, false)
setIsGlobalLoading(false)
},
denyFn: async () => {
setIsGlobalLoading(true)
await postObjectPlan(userId, objectNo, false, false)
setIsGlobalLoading(false)
},
})
: async () => {
if (JSON.parse(currentCanvasData()).objects.length > 0) {
swalFire({
text: `Plan ${currentCanvasPlan.planNo} ` + getMessage('plan.message.confirm.copy'),
type: 'confirm',
confirmFn: async () => {
setIsGlobalLoading(true)
await postObjectPlan(userId, objectNo, true, false)
setIsGlobalLoading(false)
},
denyFn: async () => {
setIsGlobalLoading(true)
await postObjectPlan(userId, objectNo, false, false)
setIsGlobalLoading(false)
}
},
})
} else {
setIsGlobalLoading(true)
await postObjectPlan(userId, objectNo, false, false)
setIsGlobalLoading(false)
}
}
/**