From 5965404e4fec8c2b4c5c622604115cf5152ab834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=98=84=EC=84=B1=ED=95=84?= Date: Thu, 4 Dec 2025 16:19:49 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=EC=A6=9D=ED=82=A4=20=EC=8B=A0?= =?UTF-8?q?=EC=B2=AD=20=ED=94=84=EB=A1=9C=EC=84=B8=EC=8A=A4=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/views/apps/mypage/apiKeyModifyStep2.html | 10 ++++------ .../views/apps/mypage/apiKeyRegisterStep2.html | 5 +---- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/main/resources/templates/views/apps/mypage/apiKeyModifyStep2.html b/src/main/resources/templates/views/apps/mypage/apiKeyModifyStep2.html index 12aa295..a1b0a0a 100644 --- a/src/main/resources/templates/views/apps/mypage/apiKeyModifyStep2.html +++ b/src/main/resources/templates/views/apps/mypage/apiKeyModifyStep2.html @@ -711,13 +711,11 @@ // Form validation form.addEventListener('submit', function(e) { - // Allow submission even without selected APIs (user might want to remove all) - // But show confirmation + // API 선택 필수 검증 if (selectedApis.size === 0) { - if (!confirm('API를 선택하지 않으셨습니다. 계속하시겠습니까?')) { - e.preventDefault(); - return false; - } + e.preventDefault(); + customPopups.showAlert('최소 1개 이상의 API를 선택해주세요.'); + return false; } }); diff --git a/src/main/resources/templates/views/apps/mypage/apiKeyRegisterStep2.html b/src/main/resources/templates/views/apps/mypage/apiKeyRegisterStep2.html index c6cba0d..eddbc67 100644 --- a/src/main/resources/templates/views/apps/mypage/apiKeyRegisterStep2.html +++ b/src/main/resources/templates/views/apps/mypage/apiKeyRegisterStep2.html @@ -657,10 +657,7 @@ form.addEventListener('submit', function(e) { if (selectedApis.size === 0) { e.preventDefault(); - if (confirm('API를 선택하지 않으셨습니다. 나중에 추가하시겠습니까?')) { - // Allow form submission without selected APIs - form.submit(); - } + customPopups.showAlert('최소 1개 이상의 API를 선택해주세요.'); return false; }