소스 검색

handle the return value of `skipWarning`

jelveh 5 달 전
부모
커밋
59ac89db85
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/dev-center/js/dev-center.js

+ 2 - 2
src/dev-center/js/dev-center.js

@@ -1686,7 +1686,7 @@ async function showGitWarningDialog() {
         console.log('Retrieved skip-git-warning:', skipWarning);
 
         // If the user opted to skip the warning, proceed without showing it
-        if (skipWarning?.result === true) {
+        if (skipWarning === true) {
             return true;
         }
     } catch (error) {
@@ -1706,7 +1706,7 @@ async function showGitWarningDialog() {
             </ul>
             <div style="margin-top: 15px; display: flex; align-items: center;">
                 <input type="checkbox" id="skip-git-warning" style="margin-right: 10px;">
-                <label for="skip-git-warning">Don't show this warning again</label>
+                <label for="skip-git-warning" style="margin-top:0;">Don't show this warning again</label>
             </div>
             <div style="margin-top: 15px; display: flex; justify-content: flex-end;">
                 <button id="cancel-deployment" style="margin-right: 10px; padding: 10px 15px; background: #f0f0f0; border: none; border-radius: 4px; cursor: pointer;">Cancel</button>