Эх сурвалжийг харах

Use IMAP helper for A4Sky verification

chendeben 4 сар өмнө
parent
commit
098bad001e

+ 1 - 1
sidepanel/sidepanel.html

@@ -338,7 +338,7 @@
     <div id="hotmail-section" class="data-card hotmail-card" style="display:none;">
       <div class="section-mini-header">
         <div class="section-mini-copy">
-          <span class="section-label">Hotmail 账号池</span>
+          <span id="hotmail-section-label" class="section-label">Hotmail 账号池</span>
         </div>
         <div class="section-mini-actions">
           <button id="btn-hotmail-usage-guide" class="btn btn-ghost btn-xs" type="button">使用教程</button>

+ 19 - 0
sidepanel/sidepanel.js

@@ -95,6 +95,7 @@ const selectTempEmailDomain = document.getElementById('select-temp-email-domain'
 const inputTempEmailDomain = document.getElementById('input-temp-email-domain');
 const btnTempEmailDomainMode = document.getElementById('btn-temp-email-domain-mode');
 const hotmailSection = document.getElementById('hotmail-section');
+const hotmailSectionLabel = document.getElementById('hotmail-section-label');
 const luckmailSection = document.getElementById('luckmail-section');
 const icloudSection = document.getElementById('icloud-section');
 const icloudSummary = document.getElementById('icloud-summary');
@@ -2368,6 +2369,24 @@ function updateMailProviderUI() {
   if (hotmailSection) {
     hotmailSection.style.display = useHotmail || useA4sky ? '' : 'none';
   }
+  if (hotmailSectionLabel) {
+    hotmailSectionLabel.textContent = useA4sky ? 'A4Sky IMAP 助手' : 'Hotmail 账号池';
+  }
+  if (btnHotmailUsageGuide) {
+    btnHotmailUsageGuide.style.display = useHotmail ? '' : 'none';
+  }
+  if (btnClearUsedHotmailAccounts) {
+    btnClearUsedHotmailAccounts.style.display = useHotmail ? '' : 'none';
+  }
+  if (btnDeleteAllHotmailAccounts) {
+    btnDeleteAllHotmailAccounts.style.display = useHotmail ? '' : 'none';
+  }
+  if (btnToggleHotmailList) {
+    btnToggleHotmailList.style.display = useHotmail ? '' : 'none';
+  }
+  if (hotmailListShell) {
+    hotmailListShell.style.display = useHotmail ? '' : 'none';
+  }
   if (luckmailSection) {
     luckmailSection.style.display = useLuckmail ? '' : 'none';
   }