fix turbo on dashboard + optimize a few more things.
This commit is contained in:
@@ -2,7 +2,6 @@ import { createBuildProfileManager } from "./build-profile-manager.js";
|
||||
import {
|
||||
createBuildHistoryManager,
|
||||
formatFileSize,
|
||||
updateExpirationTimer,
|
||||
} from "./build-history-manager.js";
|
||||
|
||||
const form = document.getElementById("build-form");
|
||||
@@ -2259,7 +2258,8 @@ function showBuildFiles(files, buildId, expiresAt) {
|
||||
const timer = document.createElement("span");
|
||||
timer.id = "expiration-timer";
|
||||
timer.className = "text-yellow-400 font-medium";
|
||||
timer.dataset.expires = String(expiresAt);
|
||||
timer.dataset.controller = "countdown";
|
||||
timer.dataset.countdownExpiresAtValue = String(expiresAt);
|
||||
timer.textContent = "Calculating...";
|
||||
right.appendChild(clockIcon);
|
||||
right.appendChild(expiresLabel);
|
||||
@@ -2270,9 +2270,6 @@ function showBuildFiles(files, buildId, expiresAt) {
|
||||
buildInfoDiv.appendChild(infoRow);
|
||||
buildFilesDiv.appendChild(buildInfoDiv);
|
||||
|
||||
updateExpirationTimer(timer, expiresAt);
|
||||
setInterval(() => updateExpirationTimer(timer, expiresAt), 60000);
|
||||
|
||||
files.forEach((file) => {
|
||||
const fileDiv = document.createElement("div");
|
||||
fileDiv.className =
|
||||
|
||||
Reference in New Issue
Block a user