2021-11-25 14:17:02 -09:00
|
|
|
<template>
|
|
|
|
<div v-if="preferences">
|
2025-06-20 00:09:12 +07:00
|
|
|
<BaseCardSectionTitle :title="$t('group.general-preferences')" />
|
|
|
|
<v-checkbox
|
|
|
|
v-model="preferences.privateGroup"
|
|
|
|
class="mt-n4"
|
|
|
|
:label="$t('group.private-group')"
|
|
|
|
/>
|
2021-11-25 14:17:02 -09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2025-06-20 00:09:12 +07:00
|
|
|
export default defineNuxtComponent({
|
2021-11-25 14:17:02 -09:00
|
|
|
props: {
|
2025-06-20 00:09:12 +07:00
|
|
|
modelValue: {
|
2021-11-25 14:17:02 -09:00
|
|
|
type: Object,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
2025-06-20 00:09:12 +07:00
|
|
|
emits: ["update:modelValue"],
|
2021-11-25 14:17:02 -09:00
|
|
|
setup(props, context) {
|
|
|
|
const preferences = computed({
|
|
|
|
get() {
|
2025-06-20 00:09:12 +07:00
|
|
|
return props.modelValue;
|
2021-11-25 14:17:02 -09:00
|
|
|
},
|
|
|
|
set(val) {
|
2025-06-20 00:09:12 +07:00
|
|
|
context.emit("update:modelValue", val);
|
2021-11-25 14:17:02 -09:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
return {
|
|
|
|
preferences,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2025-06-20 00:09:12 +07:00
|
|
|
<style lang="scss" scoped></style>
|