We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f47a42 + 11d9947 commit 2b72804Copy full SHA for 2b72804
.changeset/bright-rocks-matter.md
@@ -0,0 +1,5 @@
1
+---
2
+'@churros/app': patch
3
4
+
5
+fix(permissions): make documents access toggle actually trigger the mutation (fixes #1228)
packages/app/src/routes/(app)/users/[uid]/edit/permissions/+page.svelte
@@ -68,11 +68,10 @@
68
<InputToggle
69
slot="right"
70
value={loading(user.canAccessDocuments, false)}
71
- on:change={async ({ currentTarget }) => {
72
- if (!(currentTarget instanceof HTMLInputElement)) return;
+ on:update={async ({ detail }) => {
73
await mutateAndToast(SetCanAccessDocuments, {
74
uid: $page.params.uid,
75
- enabled: currentTarget.checked,
+ enabled: detail,
76
});
77
}}
78
></InputToggle>
0 commit comments