chore(updates): refine package modal subtitle
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user