From 13a45d2e87db7eed2f7e0622d374b643965addfe Mon Sep 17 00:00:00 2001 From: gator Date: Mon, 7 Sep 2026 23:25:29 +0000 Subject: [PATCH] Fix the header claiming an unapproved script was approved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "locked" used to mean "the script is approved" and now means "not on the layout stage", so the price card read Approved on every stage but one — including on a script still waiting to be read. It should follow whether the words are still open, which is what canEditScript says. --- script.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.html b/script.html index 6426ec9..30bd572 100644 --- a/script.html +++ b/script.html @@ -240,7 +240,9 @@ function render(r) { var head = '
' + '
$' + Number(p.price_usd || 0).toFixed(2) + '
' + '
' + ((p.segments || 4) * 8) + ' seconds · ' + (p.segments || 4) + ' shots
' - + '
' + (locked ? "Approved" : left + " rewrite" + (left === 1 ? "" : "s") + " left") + '
'; + + '
' + (canEditScript + ? left + " rewrite" + (left === 1 ? "" : "s") + " left" + : "Words approved") + '
'; var full = s.full_text ? '

The whole piece

' + esc(s.full_text) + '
' : "";