debug: add logging to diagnose admin pricing page issue

- Added immediate calls to checkDbStatus() and checkWritePermission() in base.html
- Calls happen right after function definitions, before DOMContentLoaded
- Added console.log statements to track function execution and API responses
- Removed duplicate calls from admin_pricing.html to avoid conflicts
- This will help diagnose why username and admin link disappear on admin pricing page

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-02-02 14:51:38 +03:00
parent 693c1d05d7
commit eda0e7cb47
2 changed files with 18 additions and 5 deletions

View File

@@ -891,9 +891,6 @@ document.addEventListener('DOMContentLoaded', () => {
const initialTab = urlParams.get('tab') || 'alerts';
loadTab(initialTab);
// Check write permission for admin pricing link
checkWritePermission();
// Add event listeners for preview updates
document.getElementById('modal-period').addEventListener('change', fetchPreview);
document.getElementById('modal-coefficient').addEventListener('input', debounceFetchPreview);