This commit is contained in:
@@ -711,6 +711,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.3-populate-fix3"></script>
|
<script src="/static/js/app.js?v=2.9.5-populate-progress-fix"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1813,11 +1813,19 @@ async function handlePopulateDatabase(event) {
|
|||||||
function showPopulateStatus() {
|
function showPopulateStatus() {
|
||||||
const statusDiv = document.getElementById('populate-status');
|
const statusDiv = document.getElementById('populate-status');
|
||||||
const resultsDiv = document.getElementById('populate-results');
|
const resultsDiv = document.getElementById('populate-results');
|
||||||
|
const progressBar = document.getElementById('populate-progress-bar');
|
||||||
|
const progressText = document.getElementById('populate-progress-text');
|
||||||
|
|
||||||
if (statusDiv) {
|
if (statusDiv) {
|
||||||
statusDiv.style.display = 'block';
|
statusDiv.style.display = 'block';
|
||||||
statusDiv.querySelector('.progress-fill').style.width = '0%';
|
}
|
||||||
statusDiv.querySelector('.progress-text').textContent = 'Starting...';
|
|
||||||
|
if (progressBar) {
|
||||||
|
progressBar.style.width = '0%';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (progressText) {
|
||||||
|
progressText.textContent = 'Starting...';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resultsDiv) {
|
if (resultsDiv) {
|
||||||
@@ -1883,19 +1891,23 @@ function stopPopulatePolling() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updatePopulateProgress(status) {
|
function updatePopulateProgress(status) {
|
||||||
const progressFill = document.querySelector('#populate-status .progress-fill');
|
const progressBar = document.getElementById('populate-progress-bar');
|
||||||
const progressText = document.querySelector('#populate-status .progress-text');
|
const progressText = document.getElementById('populate-progress-text');
|
||||||
const resultsDiv = document.getElementById('populate-results');
|
const resultsDiv = document.getElementById('populate-results');
|
||||||
|
|
||||||
if (status.status === 'in_progress') {
|
if (status.status === 'in_progress') {
|
||||||
if (progressFill && progressText) {
|
if (progressBar) {
|
||||||
// Show indeterminate progress
|
// Show indeterminate progress
|
||||||
progressFill.style.width = '50%';
|
progressBar.style.width = '50%';
|
||||||
|
}
|
||||||
|
if (progressText) {
|
||||||
progressText.textContent = 'Populating database...';
|
progressText.textContent = 'Populating database...';
|
||||||
}
|
}
|
||||||
} else if (status.status === 'completed') {
|
} else if (status.status === 'completed') {
|
||||||
if (progressFill && progressText) {
|
if (progressBar) {
|
||||||
progressFill.style.width = '100%';
|
progressBar.style.width = '100%';
|
||||||
|
}
|
||||||
|
if (progressText) {
|
||||||
progressText.textContent = 'Complete!';
|
progressText.textContent = 'Complete!';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user