From 2af1ea79ba5f962ea0237d231937396421fe2128 Mon Sep 17 00:00:00 2001 From: GigabiteStudios Date: Sat, 20 Jun 2026 20:01:42 -0500 Subject: [PATCH] chore(updates): refine package modal subtitle --- web/static/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/static/js/app.js b/web/static/js/app.js index 4664e6f..d5f76c1 100644 --- a/web/static/js/app.js +++ b/web/static/js/app.js @@ -145,9 +145,11 @@ document.addEventListener("DOMContentLoaded", () => { const rawPackages = trigger.dataset.packages || "[]"; const nodeLabel = updatePackagesModal.querySelector("[data-update-packages-node]"); const body = updatePackagesModal.querySelector("[data-update-packages-body]"); + const countValue = Number.parseInt(packageCount, 10); + const countLabel = Number.isFinite(countValue) && countValue === 1 ? "1 pending package" : `${packageCount} pending packages`; if (nodeLabel) { - nodeLabel.textContent = `${nodeName} | ${packageCount} pending`; + nodeLabel.textContent = `${nodeName} ยท ${countLabel}`; } if (!(body instanceof HTMLElement)) {