Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#8818 fix default checkbox checked value issue on anon config modal #8825

Conversation

webplusai
Copy link
Contributor

No description provided.

Copy link

Confirmed: webplusai has already signed the Contributor License Agreement (see contributing.md)

Copy link

netlify bot commented Dec 17, 2024

Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit 96a9acc
🔍 Latest deploy log https://app.netlify.com/sites/tiddlywiki-previews/deploys/67617ad9e1d0560008099447
😎 Deploy Preview https://deploy-preview-8825--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -9,12 +9,22 @@ class: mws-modal
<form class="mws-anon-config-form" method="POST" action="/admin/post-anon-config">
<div class="mws-modal-section">
<$set name="isChecked" value={{{ [[$:/config/MultiWikiServer/AllowAnonymousReads]get[text]] }}}>
<input type="checkbox" name="allowReads" checked=<<isChecked>>/> Allow anonymous reads
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I wonder why the checkbox widget cannot be used here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The approach here is to use wikitext to generate a static HTML form. The checkbox widget doesn't work within a static rendering because it needs the TW runtime.

@Jermolene
Copy link
Member

Thanks @webplusai

@Jermolene Jermolene merged commit e48ea2d into TiddlyWiki:multi-wiki-support Dec 17, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants