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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user