1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-22 07:42:36 +00:00
bramw_baserow/enterprise/web-frontend/modules/baserow_enterprise/components/member-roles/MemberRolesShareToggle.vue
2024-01-26 08:56:35 +00:00

39 lines
745 B
Vue

<template>
<div class="member-roles-share-toggle">
<div>
{{ $t('memberRolesShareToggle.label', { name }) }}
<div class="member-roles-share-toggle__sub-label">
{{ $t('memberRolesShareToggle.subLabel', { totalUserAmount }) }}
</div>
</div>
<SwitchInput
disabled
small
:value="toggled"
@input="$emit('update:toggled', $event)"
></SwitchInput>
</div>
</template>
<script>
export default {
name: 'MemberRolesShareToggle',
props: {
name: {
type: String,
required: true,
},
toggled: {
type: Boolean,
required: false,
default: () => true,
},
},
computed: {
totalUserAmount() {
return 5 // TODO
},
},
}
</script>