web: debugging
Local Docker Build (Dev) / build-dev (push) Successful in 5s

This commit is contained in:
2025-10-26 11:45:46 -04:00
parent eb66af837f
commit 4516a80208
3 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -950,7 +950,8 @@ body {
font-style: italic; font-style: italic;
} }
.table-container { .query-results .table-container,
.admin-results .table-container {
max-height: 400px; max-height: 400px;
overflow-y: auto; overflow-y: auto;
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
+2 -2
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NFOGuard - Database Management</title> <title>NFOGuard - Database Management</title>
<link rel="stylesheet" href="/static/css/styles.css?v=2.8.2-20241025"> <link rel="stylesheet" href="/static/css/styles.css?v=2.8.2-20241026-table-fix">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head> </head>
<body> <body>
@@ -533,6 +533,6 @@
<!-- Toast Notifications --> <!-- Toast Notifications -->
<div class="toast-container" id="toast-container"></div> <div class="toast-container" id="toast-container"></div>
<script src="/static/js/app.js?v=2.8.2-20241026-admin-tools"></script> <script src="/static/js/app.js?v=2.8.2-20241026-airdate-fix"></script>
</body> </body>
</html> </html>
+11 -6
View File
@@ -1047,18 +1047,23 @@ async function handleEnhancedEditSubmit(event) {
const dateadded = document.getElementById('edit-dateadded').value; const dateadded = document.getElementById('edit-dateadded').value;
const source = document.getElementById('edit-source').value; const source = document.getElementById('edit-source').value;
if (!dateadded) { if (!dateadded && source !== 'airdate') {
showToast('Please enter a date', 'warning'); showToast('Please enter a date', 'warning');
return; return;
} }
// Convert datetime-local to ISO string with error handling // Convert datetime-local to ISO string with error handling
let isoDateadded = null; let isoDateadded = null;
try { if (dateadded) {
isoDateadded = new Date(dateadded).toISOString(); try {
} catch (e) { isoDateadded = new Date(dateadded).toISOString();
showToast('Invalid date format', 'error'); } catch (e) {
return; showToast('Invalid date format', 'error');
return;
}
} else if (source === 'airdate') {
// For airdate source, let the backend handle the date conversion
isoDateadded = null;
} }
try { try {