From 96a9accf53480009fb3f5653cfd8d87372b1ec56 Mon Sep 17 00:00:00 2001 From: webplusai Date: Tue, 17 Dec 2024 13:19:12 +0000 Subject: [PATCH] #8818 fix default checkbox checked value issue on anon config modal --- .../templates/anon-config-modal.tid | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/tiddlywiki/multiwikiserver/templates/anon-config-modal.tid b/plugins/tiddlywiki/multiwikiserver/templates/anon-config-modal.tid index 23a6f54ff37..8095fcd9b08 100644 --- a/plugins/tiddlywiki/multiwikiserver/templates/anon-config-modal.tid +++ b/plugins/tiddlywiki/multiwikiserver/templates/anon-config-modal.tid @@ -9,12 +9,22 @@ class: mws-modal
<$set name="isChecked" value={{{ [[$:/config/MultiWikiServer/AllowAnonymousReads]get[text]] }}}> - >/> Allow anonymous reads + <$list filter="[match[yes]]"> + Allow anonymous reads + + <$list filter="[!match[yes]]"> + Allow anonymous reads +
<$set name="isChecked" value={{{ [[$:/config/MultiWikiServer/AllowAnonymousWrites]get[text]] }}}> - >/> Allow anonymous writes + <$list filter="[match[yes]]"> + Allow anonymous writes + + <$list filter="[!match[yes]]"> + Allow anonymous writes +