fix: Admin settings checkboxes not updating (#7462)

This commit is contained in:
Brian Choromanski
2026-04-14 11:58:07 -04:00
committed by GitHub
parent 6e2c849412
commit af79a751fb
2 changed files with 12 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
<BaseCardSectionTitle :title="$t('group.group-preferences')" />
<div class="mb-6">
<v-checkbox
v-model="preferences.privateGroup"
v-model="local.privateGroup"
hide-details
density="compact"
color="primary"
@@ -21,7 +21,7 @@
</div>
<div class="mb-6">
<v-checkbox
v-model="preferences.showAnnouncements"
v-model="local.showAnnouncements"
hide-details
density="compact"
color="primary"
@@ -40,4 +40,6 @@
import type { ReadGroupPreferences } from "~/lib/api/types/user";
const preferences = defineModel<ReadGroupPreferences>({ required: true });
const local = reactive({ ...preferences.value });
watch(local, (newVal) => { preferences.value = { ...newVal }; });
</script>