mirror of
https://github.com/hanzo-io/press.git
synced 2026-10-30 18:56:50 +00:00
42 lines
649 B
Vue
42 lines
649 B
Vue
<template>
|
|
<Dialog
|
|
:options="{
|
|
title: 'Settings'
|
|
}"
|
|
v-model="show"
|
|
>
|
|
<template #body-content>
|
|
<div class="mt-8 flex flex-col gap-4">
|
|
<Switch
|
|
v-model="enforce2FA"
|
|
label="Enforce 2FA"
|
|
description="Require all team members to enable 2FA"
|
|
/>
|
|
</div>
|
|
</template>
|
|
</Dialog>
|
|
</template>
|
|
|
|
<script>
|
|
import { Switch } from 'frappe-ui';
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
show: true
|
|
};
|
|
},
|
|
components: { Switch },
|
|
computed: {
|
|
enforce2FA: {
|
|
get() {
|
|
return Boolean(this.$team?.doc.enforce_2fa);
|
|
},
|
|
set(value) {
|
|
this.$team.setValue.submit({ enforce_2fa: value });
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script>
|