Better response variable name db_changed -> report_success
authorKarl O. Pinc <kop@karlpinc.com>
Tue, 16 Jul 2024 13:07:16 +0000 (08:07 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Tue, 16 Jul 2024 13:07:16 +0000 (08:07 -0500)
src/pgwui_common/templates/auth_base.mak
src/pgwui_common/templates/base.mak

index ca76372163c9642fe33a89f24bf4b8fa1e1eabcd..867675d227eaa3b7f23cf13f2d18bb5e0ac0c430 100644 (file)
@@ -35,7 +35,7 @@
 
     For use with upload_form:
     csrf_token  Token for detecting CSRF.
-    db_changed  Boolean. Whether the db was changed.
+    report_success  Boolean. Whether to tell the user the db was changed.
     session_expired  Boolean.  Whether the session has expired.
     last_key     Token to detect duplicate uploads.
     db
@@ -64,7 +64,7 @@
   <form action="" enctype="multipart/form-data" method="post">
     <div>
     ${self.auth_parts.hidden_vars(csrf_token)}
-    % if (db_changed or session_expired) and last_key:
+    % if (report_success or session_expired) and last_key:
       <input type="hidden"
              name="last_key"
              value="${last_key}"
index 51c4ee4988bef758a2babc042928be908578ece1..513484e0e8564b016723d03b620b579419dd58dd 100644 (file)
@@ -65,7 +65,7 @@
 
   <%block name="error_report" />
 
-  % if db_changed:
+  % if report_success:
     <%block name="action_success" />
   % endif