Skip to content

Commit

Permalink
Use v-model variable for is_subscribed (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Nov 8, 2024
1 parent 62e80c0 commit 328b1d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'id' => $id,
])" v-on:change="() => {
if (typeof mutate === 'function' && (!{{ (int)$isPartOfAnotherForm }})) { mutate() }
if ($root.loggedIn) { $root.user.extension_attributes.is_subscribed=variables.is_subscribed }
if ($root.loggedIn) { $root.user.extension_attributes.is_subscribed={{ $attributes->get('v-model') }} }
}">
<x-slot:slot class="ml-2 flex flex-col gap-1">
<span class="text-ct-primary text-sm font-medium">@lang('Yes, I want to subscribe to the newsletter')</span>
Expand Down

0 comments on commit 328b1d6

Please sign in to comment.