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

Fix flash of "read-only" badge on initial page load #106

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

ekzhang
Copy link
Owner

@ekzhang ekzhang commented Dec 30, 2024

Because of how the read-only mode is implemented on the frontend currently, there's a brief flash of the "read-only" bug when the page is first loaded and before the canWrite value is received. This is only a display bug.

Fixed in this change by not displaying the badge until we've confirmed that canWrite === false.

image

@ekzhang ekzhang merged commit c94590c into main Dec 30, 2024
5 checks passed
@ekzhang ekzhang deleted the ekzhang/write-access branch December 30, 2024 16:06
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.

1 participant