mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
31 lines
607 B
Vue
31 lines
607 B
Vue
<template>
|
|
<BFormCheckbox
|
|
v-model="checked"
|
|
v-on="$listeners"
|
|
:id="id"
|
|
:aria-describedby="$parent.id + '__BV_description_'"
|
|
switch
|
|
>
|
|
{{ label || $t(labels[checked]) }}
|
|
</BFormCheckbox>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
compatConfig: { MODE: 3 },
|
|
name: 'CheckboxItem',
|
|
|
|
props: {
|
|
value: { type: Boolean, required: true },
|
|
id: { type: String, default: null },
|
|
label: { type: String, default: null },
|
|
labels: { type: Object, default: () => ({ true: 'yes', false: 'no' }) },
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
checked: this.value,
|
|
}
|
|
},
|
|
}
|
|
</script>
|