From: Amazingca Date: Mon, 4 May 2026 05:05:21 +0000 (-0600) Subject: Change capitalization and add reactive zero-element archive message X-Git-Url: http://git.amazingca.dev/?a=commitdiff_plain;h=84a4dbaf83e9ee1676b461a0508405c533e7e396;p=autumn%2Ftodo Change capitalization and add reactive zero-element archive message --- diff --git a/archived.html b/archived.html index 31d0acf..ed69325 100644 --- a/archived.html +++ b/archived.html @@ -20,9 +20,7 @@
-
-

No archived todos for now...

-
+
diff --git a/archived.js b/archived.js index d3d20c1..382335f 100644 --- a/archived.js +++ b/archived.js @@ -97,9 +97,10 @@ const applyListeners = () => { const hydrateTodos = () => { - if (archived.length >= 0) archivedElement.innerHTML = archived + if (archived.length > 0) archivedElement.innerHTML = archived .map((x, index) => todoElement(x, index)) .join(""); + else archivedElement.innerHTML = "

no archived todos for now…

"; applyListeners(); };