NextPatent Bot commited on
Commit
4f7da35
ยท
1 Parent(s): 7af4260

Fix: Hide integration box on step 6 for institutional profiles

Browse files
Files changed (1) hide show
  1. static/js/app.js +9 -1
static/js/app.js CHANGED
@@ -461,7 +461,7 @@ document.addEventListener('DOMContentLoaded', () => {
461
  const target = btn.getAttribute('data-target');
462
  closeModal(document.getElementById('alerts-modal'));
463
  showToast(`'${target}' ๊ธฐ๋ฐ˜ AI ์‹ ๊ธฐ์ˆ  ์œตํ•ฉ ๊ธฐํš ์‹œ๋ฎฌ๋ ˆ์ด์…˜์„ ๊ฐ€๋™ํ•ฉ๋‹ˆ๋‹ค.`);
464
- openWizard();
465
  });
466
  });
467
  }
@@ -885,6 +885,14 @@ document.addEventListener('DOMContentLoaded', () => {
885
  const box = document.getElementById('wizard-step6-integration-box');
886
  if (!box) return;
887
 
 
 
 
 
 
 
 
 
888
  const btnRegister = document.getElementById('btn-register-patent-to-institution');
889
  const hint = box.querySelector('.registered-list-hint');
890
  const selectRow = box.querySelector('.institution-select-row');
 
461
  const target = btn.getAttribute('data-target');
462
  closeModal(document.getElementById('alerts-modal'));
463
  showToast(`'${target}' ๊ธฐ๋ฐ˜ AI ์‹ ๊ธฐ์ˆ  ์œตํ•ฉ ๊ธฐํš ์‹œ๋ฎฌ๋ ˆ์ด์…˜์„ ๊ฐ€๋™ํ•ฉ๋‹ˆ๋‹ค.`);
464
+ openWizard(activeProfile === 'institution' ? 'institution' : 'individual');
465
  });
466
  });
467
  }
 
885
  const box = document.getElementById('wizard-step6-integration-box');
886
  if (!box) return;
887
 
888
+ // ๊ธฐ๊ด€ ํ”„๋กœํ•„ ์ƒํƒœ์ผ ๋•Œ๋Š” ๊ฐœ์ธ ํŠนํ—ˆ ๊ท€์† ๊ธฐ๋Šฅ์ด ๋ถˆํ•„์š”ํ•˜๋ฏ€๋กœ ์™„์ „ํžˆ ์ˆจ๊น€
889
+ if (activeProfile === 'institution') {
890
+ box.classList.add('hidden');
891
+ return;
892
+ } else {
893
+ box.classList.remove('hidden');
894
+ }
895
+
896
  const btnRegister = document.getElementById('btn-register-patent-to-institution');
897
  const hint = box.querySelector('.registered-list-hint');
898
  const selectRow = box.querySelector('.institution-select-row');