From e1b1f14cb3c9b0fc206ed64b02ba10726c1eb338 Mon Sep 17 00:00:00 2001 From: AppleTheGolden Date: Sun, 12 Oct 2025 00:49:23 +0200 Subject: [PATCH] move have_zls into authsrv.py --- copyparty/authsrv.py | 1 + copyparty/httpcli.py | 2 +- copyparty/web/browser.html | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 04507f5f..da9a3afa 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -3022,6 +3022,7 @@ class AuthSrv(object): "have_shr": self.args.shr, "shr_who": vf["shr_who"], "have_zip": not self.args.no_zip, + "have_zls": not self.args.no_zls, "have_mv": not self.args.no_mv, "have_del": not self.args.no_del, "have_unpost": int(self.args.unpost), diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 038ac9a5..218b06cd 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -6629,6 +6629,7 @@ class HttpCli(object): "acct": self.uname, "perms": perms, } + # also see `js_htm` in authsrv.py j2a = { "cgv1": vn.js_htm, "cgv": cgv, @@ -6638,7 +6639,6 @@ class HttpCli(object): "taglist": [], "have_tags_idx": int(e2t), "have_b_u": (self.can_write and self.uparam.get("b") == "u"), - "have_zls": int(not self.args.no_zls), "sb_lg": vn.js_ls["sb_lg"], "url_suf": url_suf, "title": html_escape("%s %s" % (self.args.bname, self.vpath), crlf=True), diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index d54fedc1..2201ab58 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -139,8 +139,7 @@ have_tags_idx = {{ have_tags_idx }}, sb_lg = "{{ sb_lg }}", logues = {{ logues|tojson if sb_lg else "[]" }}, - ls0 = {{ ls0|tojson }}, - have_zls = {{ have_zls }}; + ls0 = {{ ls0|tojson }}; var STG = window.localStorage; document.documentElement.className = (STG && STG.cpp_thm) || dtheme;